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

2007-02-05 Thread burnus at gcc dot gnu dot org
--- 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

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

2007-02-03 Thread burnus at gcc dot gnu dot org
--- 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

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

2007-02-03 Thread tkoenig at gcc dot gnu dot org
--- 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

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

2007-02-03 Thread pinskia 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

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

2007-02-03 Thread burnus at gcc dot gnu dot org
--- 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