https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65565

            Bug ID: 65565
           Summary: Bogus "Sequential READ or WRITE after EOF" after error
                    condition
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libfortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: tkoenig at gcc dot gnu.org

Closely related to PR 65563, a variant of
https://stackoverflow.com/questions/29238857/fortran-error-about-eof-marker/ :

  open(522,iostat=ios, position="rewind",form='unformatted')
  read(522, err=37, end=37) variable_1
37 continue
  write(522) variable_1
end program


This gets

At line 4 of file f2.f90 (unit = 522, file = 'fort.522')
Fortran runtime error: Sequential READ or WRITE not allowed after EOF marker,
possibly use REWIND or BACKSPACE

Reply via email to