Seemingly random values from @bitCast(u64, packed_struct) #3674
Labels
bug
Observed behavior contradicts documented or intended behavior
miscompilation
The compiler reports success but produces semantically incorrect code.
stage1
The process of building from source via WebAssembly and the C backend.
Milestone
Each time this is run with
zig test reproduce.zig
it has a different value foractual
. It doesn't happen ifactual
is created in-place rather than with a function, so could that mean it has something to do with result location semantics? It doesn't happen ifS1.a
andS2.a
are assigned to 0 directly rather than from the members of the structs given as arguments. I couldn't reproduce this before 5b27943The text was updated successfully, but these errors were encountered: