From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8377 invoked by alias); 30 Jan 2006 19:32:09 -0000 Received: (qmail 8339 invoked by uid 48); 30 Jan 2006 19:32:07 -0000 Date: Mon, 30 Jan 2006 19:32:00 -0000 Message-ID: <20060130193207.8338.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug middle-end/26001] [4.1/4.2 Regression] expand uses the wrong part of the string for array accesses In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "pinskia at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2006-01/txt/msg03409.txt.bz2 List-Id: ------- Comment #13 from pinskia at gcc dot gnu dot org 2006-01-30 19:32 ------- (In reply to comment #12) > > this (t02.original) looks like a possible off-by-one error. > > [1] here is correct, the arrary bounds is 1:1 and not the C array bounds > starting at 0. I should mention the off by the one error is in expand, where it forgets to take into account the lower bound of the array. I will be fixing this after my current bootstrap/test finishes for a different expand bug. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26001