Open
Description
Zig Version
0.14.1
Steps to Reproduce and Observed Behavior
The compiler will crash with a SIGSEGV when trying to compile this code:
pub const Foo = union(enum) {
a: void,
};
pub var bar: u8 = 'a';
pub fn main() void {
_ = @unionInit(Foo, &.{bar}, {});
}
Command used was zig build-exe example.zig
Expected Behavior
An error, as this code is still not correct.