[Bug middle-end/98829] Different results with -O3 and custom quiet NaN

gnu at nemanjaboric dot com gcc-bugzilla@gcc.gnu.org
Tue Jan 26 11:02:37 GMT 2021


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98829

--- Comment #5 from Nemanja Boric <gnu at nemanjaboric dot com> ---
Yes, it seems that if the constants are `constexpr` or `static inline const`
the custom payload is gone. 

I guess this is aligned to
https://en.cppreference.com/w/cpp/types/numeric_limits/quiet_NaN

"A NaN never compares equal to itself. Copying a NaN may not preserve its bit
representation."


More information about the Gcc-bugs mailing list