comptime_int
exported constants are silently dropped
#10004
Labels
bug
Observed behavior contradicts documented or intended behavior
miscompilation
The compiler reports success but produces semantically incorrect code.
Milestone
Zig Version
0.8.1
Steps to Reproduce
Write a source file like this:
Build it, using e. g.
zig build-obj
. Inspect the resulting object file or assembly.Expected Behavior
Either a compiler error, or the value to be emitted using a default representation (though which one would be unclear, with
comptime_int
type).Actual Behavior
The constant is silently dropped.
The text was updated successfully, but these errors were encountered: