[Bug c/11527] If an array "designated intializer" in a struct causes a segv.
pinskia at physics dot uc dot edu
gcc-bugzilla@gcc.gnu.org
Tue Jul 15 17:35:00 GMT 2003
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11527
pinskia at physics dot uc dot edu changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
GCC target triplet|i386-slackware-linux |*-*-*
Last reconfirmed|0000-00-00 00:00:00 |2003-07-15 17:35:39
date| |
------- Additional Comments From pinskia at physics dot uc dot edu 2003-07-15 17:35 -------
I can confirm this on the mainline (20030715), 3.0.4, 3.2.3, 3.3.1 (20030707).
0x0004b1d9 in output_pending_init_elements (all=1) at /home/gates/pinskia/src/gnu/gcc/src/
gcc/c-typeck.c:6370
6370 if (TREE_CODE (constructor_type) == ARRAY_TYPE)
(gdb) bt
#0 0x0004b1d9 in output_pending_init_elements (all=1) at /home/gates/pinskia/src/gnu/gcc/
src/gcc/c-typeck.c:6370
#1 0x00049086 in pop_init_level (implicit=0) at /home/gates/pinskia/src/gnu/gcc/src/gcc/c-
typeck.c:5523
#2 0x0000f944 in yyparse () at c-parse.y:1452
#3 0x00012f13 in c_parse_file () at c-parse.y:3028
#4 0x00068fa7 in c_common_parse_file (set_yydebug=0) at /home/gates/pinskia/src/gnu/gcc/
src/gcc/c-opts.c:1211
#5 0x003332e6 in compile_file () at /home/gates/pinskia/src/gnu/gcc/src/gcc/toplev.c:1930
#6 0x003387e9 in do_compile () at /home/gates/pinskia/src/gnu/gcc/src/gcc/toplev.c:4771
#7 0x00338901 in toplev_main (argc=15, argv=0xdfbfd698) at /home/gates/pinskia/src/gnu/
gcc/src/gcc/toplev.c:4812
(gdb) p constructor_type
$1 = 0x0
Even changing the "designated initializer" to other style (without the =, I forgot which style is what,
C99 or GNU) gcc ICEs at the same spot.
More information about the Gcc-bugs
mailing list