[Bug c/30580] GCC doesn't set floating-point exceptions when performing fp<->int conversions
geoffk at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Thu Jan 25 06:02:00 GMT 2007
------- Comment #3 from geoffk at gcc dot gnu dot org 2007-01-25 06:01 -------
It's optional, but if you support Annex F of the C99 standard then F.4 says:
If the floating value is infinite or NaN or if the integral part of the
floating value exceeds
the range of the integer type, then the ÂÂinvalidÂÂ floating-point exception is
raised and the
resulting value is unspecified.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30580
More information about the Gcc-bugs
mailing list