-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Stage2: Invalid execution of comptime code #12386
Copy link
Copy link
Closed
Labels
bugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behaviorfrontendTokenization, parsing, AstGen, Sema, and Liveness.Tokenization, parsing, AstGen, Sema, and Liveness.miscompilationThe compiler reports success but produces semantically incorrect code.The compiler reports success but produces semantically incorrect code.
Milestone
Metadata
Metadata
Assignees
Labels
bugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behaviorfrontendTokenization, parsing, AstGen, Sema, and Liveness.Tokenization, parsing, AstGen, Sema, and Liveness.miscompilationThe compiler reports success but produces semantically incorrect code.The compiler reports success but produces semantically incorrect code.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Zig Version
0.10.0-dev.3475+b3d463c9e
Steps to Reproduce
Try compiling the following code with
zig test -fno-stage1 -fLLVM comptime-bug.zigExpected Behavior
Output should be
Actual Behavior
Output is