-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
x86_64 backend: wrong code with optionals #18959
Copy link
Copy link
Closed
Labels
arch-x86_6464-bit x8664-bit x86backend-self-hostedbugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behaviormiscompilationThe compiler reports success but produces semantically incorrect code.The compiler reports success but produces semantically incorrect code.
Milestone
Metadata
Metadata
Assignees
Labels
arch-x86_6464-bit x8664-bit x86backend-self-hostedbugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behaviormiscompilationThe compiler reports success but produces semantically incorrect code.The compiler reports success but produces semantically incorrect code.
Zig Version
0.12.0-dev.2784+075e9564c
Steps to Reproduce and Observed Behavior
fails with
zig test repro.zig -target x86_64-linux-none -fno-llvm -fno-lldbut passes with
zig test repro.zig -target x86_64-linux-noneExpected Behavior
the test passes.