[Bug fortran/32048] max / min and NaN

dfranke at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Tue May 22 21:42:00 GMT 2007



------- Comment #2 from dfranke at gcc dot gnu dot org  2007-05-22 22:41 -------
Regardless whether NaN is defined, in an ordered set MAX(a, b) should always
equal MAX(b, a).

For the record:
$> ifort pr32048.f90 && ./a.out
   2.100000
   2.100000

$> sunf95 -w4 pr32048.f90 && ./a.out
Floating point exception


-- 

dfranke at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dfranke at gcc dot gnu dot
                   |                            |org


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



More information about the Gcc-bugs mailing list