[Bug fortran/39072] I/O READing logical value beyond end of string
jvdelisle at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Tue Feb 3 04:43:00 GMT 2009
------- Comment #3 from jvdelisle at gcc dot gnu dot org 2009-02-03 04:43 -------
I believe gfortran is correct as far as giving an error. The last logical
value does not begin with a T(t) or F(f).
On the commented out case gfortran agrees with g77. The string has one extra
space in it so it misses the 1 character wide logical field. Adjusting that
one byte, both gfortran and g77 get a valid read.
The only thing remaining here to me is are we attempting to read past the end
of record with the error case and so should we really be giving an EOR.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39072
More information about the Gcc-bugs
mailing list