This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/38772] r143102 breaks xplor-nih
- From: "jvdelisle at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Jan 2009 04:03:05 -0000
- Subject: [Bug libfortran/38772] r143102 breaks xplor-nih
- References: <bug-38772-11113@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from jvdelisle at gcc dot gnu dot org 2009-01-09 04:03 -------
g77, ifort, and gfortran 4.4 all pass this test case which should print
nothing.
c { dg-do run }
c PR38097 I/O with blanks in exponent fails; BN edit descriptor
c Test case derived from reporter.
character(11) :: a = ' 2. 3 e+ 3'
character(11) :: b = ' 2.003 e+ 3'
character(11) :: c = ' 2.002 e+1 '
real :: f
f = 0.0
read (a,'(BZ,E11.0)') f
if (f .ne. 2003.0) print *,11, f
f = 0.0
read (a,'(BN,E11.0)') f
if (f .ne. 2300.0) print *,14, f
f = 0.0
read (b,'(BN,E11.0)') f
if (f .ne. 2003.0) print *, 17,f
f = 0.0
read (c,'(E11.0)') f
if (f .ne. 20.020) print *, f
f = 0.0
read (c,'(BZ,E11.0)') f
if (f .ne. 2.002e10) print *, f
end
c end of program
gfortran 4.3 Fails this. What do the other compilers do?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38772