------- Comment #26 from burnus at gcc dot gnu dot org 2007-10-18 18:22 ------- If I understand it correctly, there is a difference between IEEE 754-1989 and the current draft of IEEE 754 (duped IEEE 754r), see also http://groups.google.com/group/comp.lang.fortran/browse_thread/thread/33055faef528c075
IEEE 754r says that all operations with NaN yield NaN except of min and max which give only NaN if all (i.e. both) arguments are NaN. IEEE 754-1989 had no min/max functions and thus always NaN have to be produced for maxval( huge(x), NAN ). -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30694