-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
function call with pointer to in-scope comptime var causes a miscompilation #2480
Comments
Thanks for the report. This is a duplicate of #1487 |
Oops, that's not right. Sorry about that. I think your original example should actually compile correctly and not segfault. |
this affects stage2 on changing |
One of two things needs to happen:
|
This fails correctly now thanks to our new
|
This code:
results in
Segmentation fault
.However this code:
doesn't result in a
Segmentation fault
.$ zig version
The text was updated successfully, but these errors were encountered: