From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1764 invoked by alias); 16 Dec 2011 22:55:37 -0000 Received: (qmail 1753 invoked by uid 22791); 16 Dec 2011 22:55:36 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,TW_GM 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; Fri, 16 Dec 2011 22:55:24 +0000 From: "anlauf at gmx dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/51589] Modification of loop index variable by intent(out) or intent(inout) procedures Date: Fri, 16 Dec 2011 23:00: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: X-Bugzilla-Severity: normal X-Bugzilla-Who: anlauf at gmx dot de 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: 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 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-12/txt/msg01891.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51589 Harald Anlauf changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |anlauf at gmx dot de --- Comment #3 from Harald Anlauf 2011-12-16 22:55:06 UTC --- (In reply to comment #2) > No error messages from Absoft (v9), g95, or PGI (v11.10). All print the > revised version of i, but only perform 10 iterations. > > NAG (5.2 edit 721) considers the intent(out) to be an error. No warning for > the intent(inout). Current trunk (4.7) and also 4.6.0 both give an error at runtime when compiling with "-fcheck=all" : 42 11 At line 6 of file pr51589.f90 Fortran runtime error: Loop variable has been modified