From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11293 invoked by alias); 15 May 2008 12:15:37 -0000 Received: (qmail 10894 invoked by uid 48); 15 May 2008 12:14:53 -0000 Date: Thu, 15 May 2008 12:15:00 -0000 Subject: [Bug c/36245] New: internal compiler error: in build2_stat, at tree.c:3116 X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "y at momonga-linux 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: 2008-05/txt/msg01170.txt.bz2 The following code produces an ICE with -O1 or -O2 $ cat foo.c extern char buf1[10]; extern char buf2[10]; extern void b(int i, int j, int w); void a() { int i,j; char *p; int w; p = buf1; for(j = 0;j < 10; j++) { for(i = 0;i < 10; i++) { w = *p; if(w != 1) { w = buf2[p - buf1]; b(i*2+1, j, w); } p++; } } } $ gcc -O1 foo.c foo.c: In function 'a': foo.c:5: internal compiler error: in build2_stat, at tree.c:3116 Please submit a full bug report, with preprocessed source if appropriate. See for instructions. -- Summary: internal compiler error: in build2_stat, at tree.c:3116 Product: gcc Version: 4.3.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: y at momonga-linux dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36245