From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20076 invoked by alias); 26 Mar 2013 16:20:16 -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 20049 invoked by uid 48); 26 Mar 2013 16:20:07 -0000 From: "janus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/56743] New: Namelist bug with comment and no blank Date: Tue, 26 Mar 2013 16:20: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: janus 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-03/txt/msg01923.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56743 Bug #: 56743 Summary: Namelist bug with comment and no blank Classification: Unclassified Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned@gcc.gnu.org ReportedBy: janus@gcc.gnu.org Reduced test case (inspired by the one in PR 56660), originally reported by Kai Gallmeister: integer :: value = 100 namelist /nml/ value write (*, nml=nml) open (99, file='nml.dat', status="replace") write(99,*) "&nml" write(99,*) " value=1!11" write(99,*) "/" rewind(99) read (99, nml=nml) write (*, nml=nml) close (99, status="delete") end Output with 4.3, 4.7 and trunk (haven't tried other versions): &NML VALUE= 100, / &NML VALUE= 100, / Expected output: &NML VALUE= 100, / &NML VALUE= 1, / The fact that there is no blank between the number and the comment should not make any difference, right? Unfortunately it does ...