The compiler crashes since mangling.nim was added. After a while I've traced it to the presence of an object member that has a {.cdecl, varargs.} procedure even if it's never accessed (trying to access a different member causes the crash).
Example
Try to compile this: (I've only tested with the C backend)
type P = ptr object
a: proc()
b: proc() {.cdecl, varargs.}
var p: P
p.a()
Specification
The compiler crashes since
mangling.nim
was added. After a while I've traced it to the presence of an object member that has a{.cdecl, varargs.}
procedure even if it's never accessed (trying to access a different member causes the crash).Example
Try to compile this: (I've only tested with the C backend)
Actual Output