From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7453 invoked by alias); 3 May 2006 15:46:43 -0000 Received: (qmail 7404 invoked by uid 48); 3 May 2006 15:46:32 -0000 Date: Wed, 03 May 2006 15:46:00 -0000 Subject: [Bug middle-end/27409] New: ICE in get_constraint_for_component_ref X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "matz at suse dot de" 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-05/txt/msg00279.txt.bz2 List-Id: The below testcase ICEs in get_constraint_for_component_ref when compiled with -O1 or beyond on x86_64. Richard mentions that it also fails with trunk. --------------------------------------- /* compile with gcc -c -Os -o foo.o foo.c */ typedef struct { struct { } z; } thang_t; struct widget { struct widget *p, *q; }; typedef struct thing { struct widget x; } thing_t; struct { int a; int b; int c; int d; int e; thang_t f; thing_t g; } my_struct; static void foo(thang_t *r) { splat(r);} void function(int blaz) { foo(&my_struct.f);} --------------------------------------- -- Summary: ICE in get_constraint_for_component_ref Product: gcc Version: 4.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: matz at suse dot de GCC host triplet: x86_64-linux http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27409