[Bug libfortran/59513] Fortran runtime error: Sequential READ or WRITE not allowed after EOF marker, possibly use REWIND or BACKSPACE

aruopp at gmx dot de gcc-bugzilla@gcc.gnu.org
Mon Dec 16 00:02:00 GMT 2013


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

--- Comment #3 from aruopp at gmx dot de ---
Inserting the backspace:

BACKSPACE(LU)

before loop

      DO 40 IA = IA1, IA2
        WRITE(LU,LINEF)
     &         (CPOL(IA,IPOL(KP)), KP=1, NIPOL),
     &        ((CPOLSD(IA,IS,JPOL(KP)), IS=1, 2*NBL), KP=1, NJPOL)
   40 CONTINUE

works now.

I guess, gfortran standard changed?
I'm not sure, because older gcc-versions worked with this code without any
problems.



More information about the Gcc-bugs mailing list