From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2672 invoked by alias); 20 Jul 2011 15:43:27 -0000 Received: (qmail 2660 invoked by uid 22791); 20 Jul 2011 15:43:25 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 20 Jul 2011 15:42:29 +0000 From: "kargl at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libfortran/49791] [4.4/4.5/4.6/4.7 Regression] Formatted namelist reads fails with: Cannot match namelist object X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libfortran X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: kargl at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.4.7 X-Bugzilla-Changed-Fields: CC 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 Date: Wed, 20 Jul 2011 15:43:00 -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 X-SW-Source: 2011-07/txt/msg01674.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49791 kargl at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kargl at gcc dot gnu.org --- Comment #2 from kargl at gcc dot gnu.org 2011-07-20 15:42:23 UTC --- (In reply to comment #1) > CONFIRMED. > > * * * > > Note: The format is not standard conform. Issues: "$" vs "&", "$end" vs "/". > > However, the real problem is: > xpos(1)= 0.00, 0.10, 0.20, 0.30, 0.40, > > Thus, the workaround is to fix the array bounds in the namelist file. > Why are you calling this a workaround. It looks like it is fixing a bug in the user's program. > > Note: The program works with ifort, g95, pathf95, openf95, pgf90; it fails with > the pedantic NAG - and (this PR) with the current gfortran versions. > > * * * > > Working: (4.6 trunk) 2010-09-28-r164677 > gcc-4.5-2010-07-23-r162436 > Failing: > 4.7 trunk: current, 2011-05-10, 2011-05-28-r174379 > gcc-4.5-x86_64-2010-11-13-r166693 > I'm also not sure why you call this a regression. The user appears to use on a nonconforming namelist, which depends on undefined behavior. The behavior has change. -- steve