Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiler SIGSEGV when mixing method and proc #5161

Closed
simonkrauter opened this issue Dec 28, 2016 · 0 comments
Closed

Compiler SIGSEGV when mixing method and proc #5161

simonkrauter opened this issue Dec 28, 2016 · 0 comments

Comments

@simonkrauter
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants