-
-
Notifications
You must be signed in to change notification settings - Fork 2.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
compiler segfault when creating an opaque variable as undefined
#16617
Labels
Milestone
Comments
xdBronch
added
the
bug
Observed behavior contradicts documented or intended behavior
label
Jul 30, 2023
if test {
const ot = opaque {};
var ov: ot = undefined;
_ = &ov;
}
Could it be a comptime bug? That error messages is used in |
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Zig Version
0.11.0-dev.4308 417b92f08
Steps to Reproduce and Observed Behavior
zig test opaque.zig
output
segmentation fault (core dumped) zig test c.zig
in release build of compilerhttps://gist.github.com/xdBronch/40a5fe215c1b63318998260cb6085d95 contents of this gist with a debug build
Expected Behavior
successful build or compile error, im not entirely sure the semantics of opaque types so i dont know which is expected.
The text was updated successfully, but these errors were encountered: