------- 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