Segmentation Fault When Using Anonymous Struct Literal Assignment #23190
Labels
bug
Observed behavior contradicts documented or intended behavior
regression
It worked in a previous version of Zig, but stopped working.
Milestone
Zig Version
0.14.0
Steps to Reproduce and Observed Behavior
zig init
).main.zig
:zig build run
.Observed Behavior
The program terminates with a segmentation fault:
Expected Behavior
Now I understand that Anonymous Struct Literals create comptime fields that can't be modified.
But should it compile at all?
The text was updated successfully, but these errors were encountered: