From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17222 invoked by alias); 3 May 2006 16:05:19 -0000 Received: (qmail 17209 invoked by uid 48); 3 May 2006 16:05:16 -0000 Date: Wed, 03 May 2006 16:05:00 -0000 Message-ID: <20060503160516.17208.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug middle-end/27409] ICE in get_constraint_for_component_ref In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "rguenth 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-05/txt/msg00284.txt.bz2 List-Id: ------- Comment #1 from rguenth at gcc dot gnu dot org 2006-05-03 16:05 ------- Confirmed. We access a zero-sized part of the structure: arg 1 BLK file t.c line 16 size unit size align 8 offset_align 128 offset bit offset context chain BLK file t.c line 17 size unit size align 64 offset_align 128 offset bit offset context >>> The following testcase also ICEs on 32bit targets: typedef struct { struct { } z; } thang_t; struct { short e; thang_t f; int g; } my_struct; void function(int blaz) { thang_t *fp = &my_struct.f; foo(fp);} the important thing is that there has to be padding after e and the zero-sized f. -- rguenth at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last reconfirmed|0000-00-00 00:00:00 |2006-05-03 16:05:15 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27409