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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |NEW
         Resolution|INVALID                     |---
   Last reconfirmed|                            |2023-08-22
     Ever confirmed|0                           |1

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
For C++ it's undefined behaviour. Annex F of the C standard doesn't apply to
C++.

Either the sanitizer should be enabled for C++, or the docs should say that G++
applies the rules of Annex F to floating-point types even where the standard
says it's UB.

Reply via email to