Division by zero compiling initialisation of anonymous declaration
amp-59 opened this issue · 0 comments
amp-59 commented
Zig Version
0.13.0-dev.75+5c9eb4081
Steps to Reproduce and Observed Behaviour
Compile example program with zig build-obj nochk_abisize_0.zig
nochk_abisize_0.zig
:
comptime {
const t: extern struct {
tag: enum(u8) { a, b },
val: packed union { a: packed struct {}, b: packed struct {} },
} = .{ .tag = .a, .val = .{ .a = .{} } };
_ = t;
}
Output:
zig build-obj nochk_abisize_0.zig
Floating point exception