------- Comment #6 from burnus at gcc dot gnu dot org  2010-03-10 14:52 -------
Reduced test case: Reading from a completely empty line should produce an EOF
status. As soon as there is a "\n" or " " or "0", ifort, NAG f95 and gfortran
4.3/4.5 also succeed (i.e. have no EOF error.)

That's kind of the opposite to the remaining problem of PR 43265, where reading
from an incomplete but non-empty line produces an error while it shouldn't.


      open(8,status='scratch',form='formatted')  ! Create empty file
      read(8,'(a80)', end=123)  ! Reading from an empty file should be an error
      stop 'error'
123   continue
      end


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43320

Reply via email to