This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/19155] New: blanks not treated as zeros in 'E' format read
- From: "Thomas dot Koenig at online dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Dec 2004 21:46:27 -0000
- Subject: [Bug libfortran/19155] New: blanks not treated as zeros in 'E' format read
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
This is the NIST 110 failure, reduced.
$ cat blanks.f
program blanks
a = 42.
open(19)
write(19,'(A15)') 'E+00'
rewind(19)
read(19,'(E15.8)') a
print *,a
end
$ gfortran blanks.f
$ ./a.out
At line 6 of file blanks.f
Fortran runtime error: Bad value during floating point read
$ gfortran -v
Using built-in specs.
Configured with: ../gcc/configure --prefix=/home/ig25 --enable-languages=c,c++,f95
Thread model: posix
gcc version 4.0.0 20041224 (experimental)
This is a regression from g77:
$ g77 blanks.f
$ ./a.out
0.
--
Summary: blanks not treated as zeros in 'E' format read
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: libfortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: Thomas dot Koenig at online dot de
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19155