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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |INVALID
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Instrumentation-Options.html#index-fsanitize_003dfloat-cast-overflow

With -fsanitize=float-cast-overflow, I get:

/app/example.cpp:4:35: runtime error: 1.79769e+308 is outside the range of
representable values of type 'int'
/app/example.cpp:5:35: runtime error: 1.79769e+308 is outside the range of
representable values of type 'int'
80000000
80000000

The option is documented not to be enabled with -fsanitize=undefined too.

Reply via email to