[Bug fortran/29383] Fortran 2003/F95[TR15580:1999]: Floating point exception (IEEE) support

longb at cray dot com gcc-bugzilla@gcc.gnu.org
Fri Jul 22 17:55:00 GMT 2011


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

Bill Long <longb at cray dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |longb at cray dot com

--- Comment #6 from Bill Long <longb at cray dot com> 2011-07-22 17:53:49 UTC ---
Since most other compilers support ieee_arithmetic now, the lack of support in
gfortran is becoming a portability issue.  Simple test case with 4.6.1:

> cat t1.f90
program test
   use,intrinsic :: ieee_arithmetic

   real :: x
   read *, x
   if (ieee_is_nan(x)) then
      print *, "Nan"
   else
      print *, "Not NaN"
   end if
end program test
> gfortran t1.f90
t1.f90:2.35:

   use,intrinsic :: ieee_arithmetic
                                   1
Fatal Error: Can't find an intrinsic module named 'ieee_arithmetic' at (1)



More information about the Gcc-bugs mailing list