https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82207
--- Comment #8 from Lionel GUEZ <guez at lmd dot ens.fr> --- It does not seem completely true that gfortran makes no distinction between qNaN and sNaN. There is the option -finit-real of gfortran with the different possible values nan and snan. Also, there is the option -mnan of gcc which describes different encodings for qnan and snan. Furthermore, I think that, with the present behaviour of gfortran concerning qnan, the function ieee_support_nan(0.) should return false.