From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23900 invoked by alias); 15 Jul 2004 15:42:37 -0000 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 Received: (qmail 23888 invoked by uid 48); 15 Jul 2004 15:42:36 -0000 Date: Thu, 15 Jul 2004 15:42:00 -0000 Message-ID: <20040715154236.23887.qmail@sourceware.org> From: "bangerth at dealii dot org" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20040715141619.16566.ppelissi@caramail.com> References: <20040715141619.16566.ppelissi@caramail.com> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c/16566] ICE with flexible arrays X-Bugzilla-Reason: CC X-SW-Source: 2004-07/txt/msg01873.txt.bz2 List-Id: ------- Additional Comments From bangerth at dealii dot org 2004-07-15 15:42 ------- Confirmed: ------------------------ struct S; struct C { int i; struct S *tab[]; }; struct S { struct C c; }; void foo (struct S *x) { foo(((void)1, x->c).tab[0]); } --------------------- g/x> /home/bangerth/bin/gcc-3.4-pre/bin/gcc -c x.c x.c: In function `foo': x.c:11: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See for instructions. g/x> /home/bangerth/bin/gcc-3.5-pre/bin/gcc -c x.c x.c: In function `foo': x.c:11: internal compiler error: in create_tmp_var, at gimplify.c:358 Please submit a full bug report, with preprocessed source if appropriate. See for instructions. This used to work with 3.2 and 3.3, so is a regression in 3.4 and mainline. W. -- What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed| |1 Keywords| |ice-on-valid-code Known to fail| |3.4.0 3.5.0 Known to work| |3.2.3 3.3.4 Last reconfirmed|0000-00-00 00:00:00 |2004-07-15 15:42:34 date| | Summary|internal compiler error: |ICE with flexible arrays |Segmentation fault when | |compiling a C file. | Target Milestone|--- |3.4.2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16566