This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/30694] minval/maxval with +/-Inf
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Feb 2007 20:27:56 -0000
- Subject: [Bug fortran/30694] minval/maxval with +/-Inf
- References: <bug-30694-10391@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from pinskia at gcc dot gnu dot org 2007-02-03 20:27 -------
> I think the standard not really defines what happens for -INF, INF or NAN.
> nagf95, g95 and sunf95 also return +HUGE() not +INF.
> What should be the result of minval( [ INF, NAN ] ) or of minval([4, NAN]) ?
The Fortran 2003 standard might define what happens with the IEEE real types
but other than that I don't think INF/NAN exists really in fortran's real
types.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30694