Compiler SIGSEGV when mixing method and proc #5161

Closed
trustable-code opened this Issue Dec 28, 2016 · 0 comments

Projects

None yet

2 participants

@trustable-code
Member

This code produces a SIGSEGV in the compiler:

type C = object
method m(o: C)
proc m(o: C) = discard

Explanation:
"m" is first declared as method (as forward declaration).
Then a proc "m" is declared (with same parameters).

Tested with Nim Devel from 2016-12-28 on Linux x64.

@Araq Araq added the Crash label Dec 28, 2016
@Araq Araq added a commit that closed this issue Dec 30, 2016
@Araq Araq fixes #5161 020b41e
@Araq Araq closed this in 020b41e Dec 30, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment