-
-
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
system.create doesn't work with bitfield objects #20516
Labels
Comments
related 2bda4a3 |
No need to do anything but what we do in 1.6. |
capocasa
pushed a commit
to capocasa/Nim
that referenced
this issue
Mar 31, 2023
nim-lang#20518) * Revert "fixes nim-lang#19000 (nim-lang#19032)" This reverts commit 2bda4a3. * fixes nim-lang#20516; add testcase
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What happened?
in Nim 1.7.x you can no longer use
system.create
to allocate an object that uses the bitsize pragma.Example
Current Output
Additional Information
This works fine in Nim 1.6 and older.
The error is related to #19040 , but only recently has it started triggering for
system.create
. I don't understand why the compiler would be trying to evaluatesizeof
at compile time in this scenario, if it wasn't doing so before.Nim Version
The text was updated successfully, but these errors were encountered: