From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22869 invoked by alias); 18 Feb 2015 13:29:51 -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 22807 invoked by uid 48); 18 Feb 2015 13:29:47 -0000 From: "dominiq at lps dot ens.fr" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/56852] [4.8/4.9/5 Regression] ICE on invalid: "Bad array reference" for an undeclared loop variable Date: Wed, 18 Feb 2015 13:29: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-Version: 4.9.0 X-Bugzilla-Keywords: error-recovery, ice-on-invalid-code, patch X-Bugzilla-Severity: minor X-Bugzilla-Who: dominiq at lps dot ens.fr X-Bugzilla-Status: NEW X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.8.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-02/txt/msg02005.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56852 --- Comment #6 from Dominique d'Humieres --- > There is a simple fix, may be too big hammer: > ... The patch in comment 3 fixes the ICE, bur breaks many tests (700+) for error: FAIL: gfortran.dg/abstract_type_3.f03 -O (test for errors, line 44) FAIL: gfortran.dg/abstract_type_6.f03 -O (test for errors, line 43) FAIL: gfortran.dg/advance_3.f90 -O (test for errors, line 8) FAIL: gfortran.dg/alloc_comp_constraint_1.f90 -O (test for errors, line 18) FAIL: gfortran.dg/alloc_comp_constraint_1.f90 -O (test for errors, line 20) FAIL: gfortran.dg/allocate_alloc_opt_1.f90 -O (test for errors, line 19) ...