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

jvdelisle at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Wed Oct 17 23:49:00 GMT 2007



------- Comment #22 from jvdelisle at gcc dot gnu dot org  2007-10-17 23:49 -------
Well this is just one little opinion:

There is no way that it is realistic to get a valid number out of a NaN
or a group of NaNs.  It can only be NaN.  It's like a place from which there is
no return.  Maybe we should define a new type called "Useless" so that people
understand what a NaN is. :)

Returning anything else would mask that the array was all NaNs and give a false
sense that all is OK, when its not.


-- 


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



More information about the Gcc-bugs mailing list