https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122990
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> ---
Both are "valid". As this is undefined behavior.
You can use the -fsanitize=float-cast-overflow option to find these. It is not
enabled by -fsanitize=undefined though.
https://gcc.gnu.org/onlinedocs/gcc-15.2.0/gcc/Instrumentation-Options.html#index-fsanitize_003dfloat-cast-overflow