From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18198 invoked by alias); 28 Mar 2009 21:40:58 -0000 Received: (qmail 18135 invoked by uid 48); 28 Mar 2009 21:40:46 -0000 Date: Sat, 28 Mar 2009 21:40:00 -0000 Message-ID: <20090328214046.18134.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/34656] modifies do loop variable In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "burnus at gcc dot gnu dot org" 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: 2009-03/txt/msg01988.txt.bz2 ------- Comment #6 from burnus at gcc dot gnu dot org 2009-03-28 21:40 ------- FIXED on the trunk (4.5): $ gfortran -fcheck=do test.f90 $ ./a.out At line 4 of file test.f90 Fortran runtime error: Loop variable has been modified The error location is not the best but it works reliably and without adding a check after each statement. (NAG f95 gives a better line for the error message for such violations, but it fails to detect this violation.) -- burnus at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34656