[Bug c/82349] float INFINITY issue with division by zero in regression with compiler option '-ffast-math'
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Sep 28 08:11:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82349
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |INVALID
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Two issues here that makes this undefined.
1) out of range conversion is undefined. That is inf converted to an int does
not have a specified value.
2) inf is not a valid value for float when -ffast-math is specified (fast math
implies finite math only).
More information about the Gcc-bugs
mailing list