This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/43298] fortran library does not read in NaN -Inf or Inf
- From: "jjcogliati-r1 at yahoo dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Mar 2010 21:17:43 -0000
- Subject: [Bug libfortran/43298] fortran library does not read in NaN -Inf or Inf
- References: <bug-43298-12362@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from jjcogliati-r1 at yahoo dot com 2010-03-08 21:17 -------
program should be: (both exhibit the bug though, but this works if bug is not
present)
program nan_test
implicit none
character(15) :: nan = ' NAN -INF INF'
real :: a,b,c, d = 0.0
print ('(3F5.2)'),0.0/d,-1.0/d,1.0/d
read (nan,'(3F5.2)'),a,b,c
print *,a,b,c
end program nan_test
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43298