Compiler segmentation fault
Bug #538751 reported by
jmb
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Nimrod |
Confirmed
|
Medium
|
Andreas Rumpf |
Bug Description
Nimrod version 0.8.6 on Linux. The following program causes the compiler to segfault:
type
PNode = ref TNode
TNode = tuple[self: PNode]
var node: PNode
new (node)
node.self = node
Affecting any variable of type PNode to node.self causes the segfault. Affecting nil doesn't.
To post a comment you must log in.
Can't say I am suprised given that the compiler does not implement the cycle checking for tuple types that the algorithm from the manual contains.