The second read should jump to the label with out comment. [dranta:~/tests/gfortran-D] dir% gfortran -o write29 write29.f [dranta:~/tests/gfortran-D] dir% write29 At line 7 of file write29.f Fortran runtime error: End of file [dranta:~/tests/gfortran-D] dir% cat write29.f program test dimension idata(1011) open(unit=11,form='unformatted') read(11,end= 1000 )idata call abort() 1000 continue read(11,err= 1001 )idata call abort() 1001 continue close(11,status='delete') stop end
Hmm, I almost want to say this is a dup of bug 26509.
Yes it is. See my comments there. I am working this issue. *** This bug has been marked as a duplicate of 26509 ***