-
-
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
sizeof array with static N crash in type section #12636
Labels
Comments
10 tasks
Merged
PMunch
pushed a commit
to PMunch/Nim
that referenced
this issue
Jan 6, 2021
* close nim-lang#11142 * fix nim-lang#12636 * undo unwanted changes * fix illegal recursion case
mildred
pushed a commit
to mildred/Nim
that referenced
this issue
Jan 11, 2021
* close nim-lang#11142 * fix nim-lang#12636 * undo unwanted changes * fix illegal recursion case
irdassis
pushed a commit
to irdassis/Nim
that referenced
this issue
Mar 16, 2021
* close nim-lang#11142 * fix nim-lang#12636 * undo unwanted changes * fix illegal recursion case
ardek66
pushed a commit
to ardek66/Nim
that referenced
this issue
Mar 26, 2021
* close nim-lang#11142 * fix nim-lang#12636 * undo unwanted changes * fix illegal recursion case
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The following crashes in a type section, removing
sizeof(array[N, ptr T])
avoids the crash.The error message points to int128
Replacing N by 10 works so
static
is important.Workaround: use
N * sizeof(ptr T)
instead ofsizeof(array[N, ptr T])
The text was updated successfully, but these errors were encountered: