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 crash on discard void #7470

Closed
lightness1024 opened this issue Apr 2, 2018 · 1 comment

Comments

Projects
None yet
3 participants
@lightness1024
Copy link

commented Apr 2, 2018

the following code:

discard void

crashes with

Error: internal error: expr(skType); unknown symbol
No stack traceback available

@Yardanico Yardanico added the Crash label Apr 2, 2018

@genotrance

This comment has been minimized.

Copy link
Contributor

commented Apr 13, 2018

This actually doesn't crash since discard has a typo above. If you change it to discard void and try, Nim will crash as mentioned. Please fix issue submission since we have an automated tool to test snippets for crashes now.

dumjyl added a commit to dumjyl/Nim that referenced this issue Apr 30, 2019

@Araq Araq closed this in #11146 May 1, 2019

Araq added a commit that referenced this issue May 1, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.