From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20373 invoked by alias); 25 Feb 2013 19:02:21 -0000 Received: (qmail 20296 invoked by uid 48); 25 Feb 2013 19:01:53 -0000 From: "tilo@tilo-schwarz.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/55117] Programs fails to read namelist (contains derived types objects) Date: Mon, 25 Feb 2013 19:02:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: tilo@tilo-schwarz.de X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: jvdelisle at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 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 X-SW-Source: 2013-02/txt/msg02389.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55117 --- Comment #16 from Tilo Schwarz 2013-02-25 19:01:50 UTC --- (In reply to comment #14) > Created attachment 29532 [details] > Namelist patch Bummer, I had a typo in the comment: The second hunk should read "/* Don't move first_nl" instead of "/* Don't move pprev_nl": @@ -2901,7 +2901,8 @@ get_name: goto nml_err_ret; } - if (*pprev_nl == NULL || !component_flag) + /* Don't move first_nl further in the list if a qualifier was found */ + if ((*pprev_nl == NULL && !qualifier_flag) || !component_flag) first_nl = nl; Sorry, Tilo