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

`set[` in proc definition crashes compiler #10678

alaviss opened this issue Feb 15, 2019 · 0 comments


None yet
3 participants
Copy link

commented Feb 15, 2019

Example (run with nim check)

proc a(b: int, c: set[)

Current Output

t.nim(1, 23) Error: expression expected, but found ')'
t.nim(2, 1) Error: expected: ']', but got: '[EOF]'
t.nim(2, 1) Error: expected: ')', but got: '[EOF]'
SIGSEGV: Illegal storage access. (Attempt to read from nil?)


Not crashing

Additional Information

Nim Compiler Version 0.19.9 [Linux: amd64]
Compiled at 2019-02-14
Copyright (c) 2006-2018 by Andreas Rumpf

git hash: 3520253a09cb8f32df834e619c7435092a370e9d
active boot switches: -d:release -d:useLinenoise

@narimiran narimiran added the Nim check label Feb 15, 2019

@krux02 krux02 self-assigned this Feb 15, 2019

krux02 added a commit to krux02/Nim that referenced this issue Feb 15, 2019

@krux02 krux02 referenced this issue Feb 15, 2019


fix #10678 #10681

@Araq Araq closed this in #10681 Feb 23, 2019

Araq added a commit that referenced this issue Feb 23, 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.