Open Validark opened 1 month ago
Reduction:
comptime {
const a: @Vector(1, u8) = .{undefined};
_ = a >> @splat(4);
}
Missing undefined
check in Value.shrScalar
. Same applies to shlScalar
and probably a bunch more arithmetic functions -- we should check all of these.
Zig Version
0.14.0-dev.1366+d997ddaa1
Steps to Reproduce and Observed Behavior
Running
bits_to_nibbles
at compile-time crashes the compiler. Godbolt linkExpected Behavior
no crash