[Bug fortran/32048] max/min and NaN

2007-07-28 Thread fxcoudert at gcc dot gnu dot org
--- Comment #9 from fxcoudert at gcc dot gnu dot org 2007-07-28 15:23 --- Fixed. -- fxcoudert at gcc dot gnu dot org changed: What|Removed |Added Status|ASSI

[Bug fortran/32048] max/min and NaN

2007-07-28 Thread fxcoudert at gcc dot gnu dot org
--- Comment #8 from fxcoudert at gcc dot gnu dot org 2007-07-28 15:23 --- Subject: Bug 32048 Author: fxcoudert Date: Sat Jul 28 15:23:11 2007 New Revision: 127019 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=127019 Log: PR fortran/32048 * f95-lang.c (gfc_init

[Bug fortran/32048] max/min and NaN

2007-07-28 Thread fxcoudert at gcc dot gnu dot org
-- fxcoudert at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|unassigned at gcc dot gnu |fxcoudert at gcc dot gnu dot |dot org

[Bug fortran/32048] max / min and NaN

2007-07-28 Thread fxcoudert at gcc dot gnu dot org
--- Comment #7 from fxcoudert at gcc dot gnu dot org 2007-07-28 13:49 --- Here's a patch that yields results according to IEEE: Index: f95-lang.c === --- f95-lang.c (revision 126997) +++ f95-lang.c (working copy) @@ -100

[Bug fortran/32048] max / min and NaN

2007-05-25 Thread tkoenig at gcc dot gnu dot org
--- Comment #6 from tkoenig at gcc dot gnu dot org 2007-05-25 20:36 --- (In reply to comment #5) > Of course people are complaining that min/max as of IEEE does not propagate > NaNs > as other operations do. We could add flags like -fpropagate-nan, -fno-propagate-nan and -fdontcare-prop

[Bug fortran/32048] max / min and NaN

2007-05-23 Thread rguenth at gcc dot gnu dot org
--- Comment #5 from rguenth at gcc dot gnu dot org 2007-05-23 11:21 --- Of course people are complaining that min/max as of IEEE does not propagate NaNs as other operations do. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32048

[Bug fortran/32048] max / min and NaN

2007-05-22 Thread burnus at gcc dot gnu dot org
--- Comment #4 from burnus at gcc dot gnu dot org 2007-05-22 23:02 --- Fortran has no concept of NaN except in Fortran 2003 IEEE module. To say it in the words of Dick Hendrickson (cf. PR 30694): "A program is prohibited from invoking an intrinsic procedure under circumstances where a va

[Bug fortran/32048] max / min and NaN

2007-05-22 Thread pinskia at gcc dot gnu dot org
--- Comment #3 from pinskia at gcc dot gnu dot org 2007-05-22 22:50 --- And NaN is unordered which causes the results to become undefined unless you have a defined value for min/max in the standard (fmin/fmax in C99 have a defined value of having NaN being a missing value). -- http:

[Bug fortran/32048] max / min and NaN

2007-05-22 Thread dfranke at gcc dot gnu dot org
--- Comment #2 from dfranke at gcc dot gnu dot org 2007-05-22 22:41 --- Regardless whether NaN is defined, in an ordered set MAX(a, b) should always equal MAX(b, a). For the record: $> ifort pr32048.f90 && ./a.out 2.10 2.10 $> sunf95 -w4 pr32048.f90 && ./a.out Floating po

[Bug fortran/32048] max / min and NaN

2007-05-22 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2007-05-22 22:07 --- NaN is not defined in Fortran's real so I am thinking about closing this as invalid. Only the IEEE types in Fortran 2003 is where NaN are defined. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32048