[Bug libfortran/19155] New: blanks not treated as zeros in 'E' format read
Thomas dot Koenig at online dot de
gcc-bugzilla@gcc.gnu.org
Sat Dec 25 21:46:00 GMT 2004
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
More information about the Gcc-bugs
mailing list