-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Codegen error on const: ...extra brace group...
#10815
Comments
Possibly related. #9622 |
And another example, might or might not be related: type CharSet {.union.} = object
cs: set[char]
vs: array[4, uint64]
const a = Charset(cs: {'a'..'z'})
echo a.repr |
timotheecour
added a commit
to timotheecour/Nim
that referenced
this issue
Oct 23, 2020
Closed
timotheecour
added a commit
to timotheecour/Nim
that referenced
this issue
Oct 24, 2020
based on #15696 this is architecture specific |
Merged
|
type CharSet {.union.} = object
cs: set[char]
vs: array[4, uint64]
const a = Charset(cs: {'a'..'z'})
echo a.repr is a different issue. |
The first case has been already added to test cases. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The following snippet causes illegal C code with
nim c
Result:
Versions:
The text was updated successfully, but these errors were encountered: