From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26891 invoked by alias); 1 Apr 2013 19:18:34 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 26792 invoked by uid 48); 1 Apr 2013 19:18:21 -0000 From: "burnus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/56803] New: EOF with namelist read give INTERNAL error instead of END OF FILE error Date: Mon, 01 Apr 2013 19:18:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: burnus at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 X-SW-Source: 2013-04/txt/msg00031.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56803 Bug #: 56803 Summary: EOF with namelist read give INTERNAL error instead of END OF FILE error Classification: Unclassified Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned@gcc.gnu.org ReportedBy: burnus@gcc.gnu.org CC: jvdelisle@gcc.gnu.org Blocks: 56744 Follow up to PR56660 comment 19, see also PR56660. The following program - which lacks a "/" - gives with GCC 4.1: Fortran runtime error: End of file But with GCC 4.3 to 4.9 it gives: Fortran runtime error: Internal namelist read error Expected: END of file. Which I also get with NAG, Pathscale, PGI and Crayftn. implicit none integer :: ii namelist /nml/ ii open(99, status="scratch") write(99,'(a)') "&nml ii=55" rewind(99) read(99, nml=nml) print *, ii end