This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/14714] segfault when initializing a flexible array member using designated initializer
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Mar 2004 15:49:20 -0000
- Subject: [Bug c/14714] segfault when initializing a flexible array member using designated initializer
- References: <20040324074254.14714.henryhack101@netscape.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From bangerth at dealii dot org 2004-03-24 15:49 -------
Confirmed, we get an ICE for 3.3 and later:
g/x> /home/bangerth/bin/gcc-3.3.4-pre/bin/gcc -std=c99 -c x.c
x.c:6: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
g/x> /home/bangerth/bin/gcc-3.4-pre/bin/gcc -std=c99 -c x.c
x.c:6: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
g/x> /home/bangerth/bin/gcc-3.5-pre/bin/gcc -std=c99 -c x.c
x.c:6: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
I assume the code is valid but undefined, since icc gives a warning
like so:
g/x> icc -Xc -ansi -c x.c
x.c(6): warning #1368: excess initializers are ignored
struct A a1 = {1,{[1]=2}};
^
W.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |ice-on-valid-code
Known to fail| |3.3.3 3.4.0 3.5.0
Last reconfirmed|0000-00-00 00:00:00 |2004-03-24 15:49:18
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14714