You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been getting internal compiler errors on Zig 0.13.0, managed to reduce to a small repro case assigning a value to a struct that has a tagged union field:
On godbolt this produces the following compiler output from both 0.13.0 and trunk (0.14.0-dev.2589+0df1f3df2):
Program terminated with signal: SIGTRAP
Compiler returned: 133
Interestingly, if I uncomment the alternative assignment for c above that uses an explicit type, then compilation succeeds. I am using this workaround with my own project for now too.
Expected Behavior
Compilation succeeds in the original code where the type is omitted.
The text was updated successfully, but these errors were encountered:
sjb3d
added
the
bug
Observed behavior contradicts documented or intended behavior
label
Jan 2, 2025
Zig Version
0.13.0
Steps to Reproduce and Observed Behavior
I have been getting internal compiler errors on Zig 0.13.0, managed to reduce to a small repro case assigning a value to a struct that has a tagged union field:
On godbolt this produces the following compiler output from both 0.13.0 and trunk (0.14.0-dev.2589+0df1f3df2):
Interestingly, if I uncomment the alternative assignment for
c
above that uses an explicit type, then compilation succeeds. I am using this workaround with my own project for now too.Expected Behavior
Compilation succeeds in the original code where the type is omitted.
The text was updated successfully, but these errors were encountered: