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

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]) ?

(I think this PR is in so far disjunct from PR 30512 as the latter regards
INTEGERs, while this PR is about REALs.)


-- 

burnus at gcc dot gnu dot org changed:

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


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

Reply via email to