Miscompilation/Assertion "FPConstrained should be enabled on entire function"' failed with FENV_ACCESS and default function argument #64823
Labels
clang:codegen
IR generation bugs: mangling, exceptions, etc.
confirmed
Verified by a second party
floating-point
Floating-point math
miscompilation
With the following source, asserts-enabled builds of Clang hit an assertion:
If it is accepted that the pragma state at the point where code is lexically present is to be respected when the code is evaluated, then the non-asserts builds miscompile the code (as can be seen by inspecting the assembly obtained with
-O
; the call tofoo
is not generated).https://godbolt.org/z/5PKqY5nfa
Clang version info:
The text was updated successfully, but these errors were encountered: