--- Comment #5 from burnus at gcc dot gnu dot org 2007-02-05 19:40 ---
As Dick Hendrickson points out in c.l.fortran:
13.7 (the function descriptions) says
"A program is prohibited from invoking an intrinsic procedure under
circumstances where a value to be returned in a subroutine argu
--- Comment #4 from burnus at gcc dot gnu dot org 2007-02-04 00:19 ---
Thomas asked at c.l.f:
http://groups.google.com/group/comp.lang.fortran/browse_thread/thread/e3745c39a11522c5
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30694
--- 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
--- Comment #2 from tkoenig at gcc dot gnu dot org 2007-02-03 19:28 ---
(In reply to comment #1)
> > We should really be initializing our starting values to +/-Inf, both
> > in the library and the front end.
>
> In principle yes, but we need still return +HUGE or -HUGE (respectively
> -
--- Comment #1 from burnus at gcc dot gnu dot org 2007-02-03 16:40 ---
> We should really be initializing our starting values to +/-Inf, both
> in the library and the front end.
In principle yes, but we need still return +HUGE or -HUGE (respectively
-HUGE-1) for arrays with zero element