http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56786
Tobias Burnus <burnus at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |wrong-code Target Milestone|--- |4.6.4 --- Comment #4 from Tobias Burnus <burnus at gcc dot gnu.org> 2013-04-01 20:29:46 UTC --- (In reply to comment #2) > *** Bug 56803 has been marked as a duplicate of this bug. *** That bug has the following test case. We should consider adding it as well. In addition, the compiler should report END of file and not an error - hence, libgfortran is not according the standard by failing in the wrong way: implicit none integer :: ii namelist /nml/ ii open(99, status="scratch") write(99,'(a)') "&nml ii=55" rewind(99) read(99, nml=nml, end=77, err=90) print *, ii stop 'OK - vendor extension: successful READ w/o "/"' 77 stop 'OK - END of FILE hit' 90 call abort() ! Wrong end