-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
No error on comptime expression loading runtime value #22296
Labels
Milestone
Comments
kj4tmp
added
the
bug
Observed behavior contradicts documented or intended behavior
label
Dec 23, 2024
That error is correct but if you suppress it with Stack trace
|
Vexu
changed the title
Segfault on comptime value
No error on comptime expression loading runtime value
Dec 23, 2024
mlugg
added a commit
to mlugg/zig
that referenced
this issue
Dec 24, 2024
Also, simplify the handling of this instruction; it was previously going through a completely unnecessary runtime path. Who would write such ridiculous code?! (It was me, I wrote it) Resolves: ziglang#22296
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Zig Version
0.14.0-dev.2540+f857bf72e
Steps to Reproduce and Observed Behavior
Create file
test.zig
with the following contents:Observe segfault:
Expected Behavior
Not sure, when I remove the
comptime
I get the following output:The text was updated successfully, but these errors were encountered: