From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23836 invoked by alias); 31 Jan 2006 05:19:57 -0000 Received: (qmail 23800 invoked by uid 48); 31 Jan 2006 05:19:55 -0000 Date: Tue, 31 Jan 2006 05:19:00 -0000 Message-ID: <20060131051955.23799.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/msg03462.txt.bz2 List-Id: ------- Comment #17 from pinskia at gcc dot gnu dot org 2006-01-31 05:19 ------- Created an attachment (id=10765) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10765&action=view) Patch which still needs to bootstrap/tested but it works on my simple example ChangeLog: * expr.c (expand_expr_real_1) : Use the corrected index for the character out of the string constant. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26001