[Bug fortran/48979] FRACTION und EXPONENT return invalid results for infinity/NaN

thenlich at users dot sourceforge.net gcc-bugzilla@gcc.gnu.org
Thu May 12 18:00:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48979

--- Comment #2 from Thomas Henlich <thenlich at users dot sourceforge.net> 2011-05-12 17:34:27 UTC ---
(In reply to comment #1)
> (In reply to comment #0)
> > 
> > Bug 1:
> > The program does not compile without -fno-range-check.
> > 
> 
> Can you explain why you think that this is a bug?

I consider it a bug because the result of the expressions FRACTION(Infinity)
and FRACTION(NaN) is defined by the Fortran standard, so the compiler should
not throw an error on simplifying them.

Whether this really is a bug or not depends on whether one thinks that a
standard-compliant Fortran program should compile without requiring special
options (I do).



More information about the Gcc-bugs mailing list