Zig Version
0.12.0-dev.983+78f2ae7f2
Steps to Reproduce and Observed Behavior
Compile example program with zig build-obj union_enum_comptime_int.zig
union_enum_comptime_int.zig:
constTag=union(enum(comptime_int)) { a, b };
exportfnentry(payload: Tag) void {
switch (payload) {
else=> {},
}
}Actual result:
zig build-obj union_enum_comptime_int.zig
Segmentation fault
Expected Behavior
Zig Version
0.12.0-dev.983+78f2ae7f2
Steps to Reproduce and Observed Behavior
Compile example program with
zig build-obj union_enum_comptime_int.zigunion_enum_comptime_int.zig:Actual result:
Expected Behavior