You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Cfenv.HoldAndUpdateEnv fails in the Clang 22 hardened build: division moved past fetestexcept #379
cfenv_test.cpp:169: Expected equality: r Which is: inf, 0.0
cfenv_test.cpp:170: Expected: false (fetestexcept(FE_DIVBYZERO))
The hardened build is -O2. The test's quiet_reciprocal has no #pragma STDC FENV_ACCESS ON, so Clang may move 1.0 / x past fetestexcept. The page's own example has the pragma, and so do the other tests that need it (block scope, Clang only). Fix: the same pragma in the test's quiet_reciprocal, matching the page.
Activity
homer6 commentedon Nov 3, 2026
Delivered in #382.
What changed
quiet_reciprocalhas#pragma STDC FENV_ACCESS ON(block scope, Clang only), like the page's example.Why
Still open
homer6 commentedon Nov 3, 2026
Merged in #382 (ea45912).
What changed
Why
Still open