This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/32048] max / min and NaN
- From: "dfranke at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 May 2007 21:41:46 -0000
- Subject: [Bug fortran/32048] max / min and NaN
- References: <bug-32048-10391@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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