From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15203 invoked by alias); 15 Jan 2013 11:29:32 -0000 Received: (qmail 14979 invoked by uid 48); 15 Jan 2013 11:28:52 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/54767] [4.7/4.8 Regression] Incorrect code generated with "-O2 -fcheck=bounds" Date: Tue, 15 Jan 2013 11:29:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.7.3 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-01/txt/msg01328.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54767 --- Comment #9 from Richard Biener 2013-01-15 11:28:48 UTC --- Exactly the same issue as PR53465, just instead of an equivalence we have a symbolic range [_79, _79] which is of course also an "equivalence". Trunk fails for the reduced testcase if you enlarge the array: integer :: NXX (14) = (/ 0, 1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 13, 14 /) otherwise the loop is unrolled.