This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/30694] minval/maxval with +/-Inf



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]