GCC throws an internal compiler error when compiling the following C99 code (gcc -std=c99 -c):
static char * name[] = { [0x80000000] = "bar" }; (GCC reports `internal compiler error: in tree_low_cst, at tree.c:3318'.) I realize that the above code is quite stupid, as I request the compiler to create an array of huge size. However, I think GCC should not throw an internal compiler error. For smaller values of the array index, GCC correctly reports `error: size of variable 'name' is too large'. I have reproduced the problem with GCC 3.4.4 (Gentoo Linux) and GCC 3.3.5 (SuSE 9.3), both on Intel Pentium M. -- Summary: ICE on initialization of a huge array Product: gcc Version: 3.4.4 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: jens dot teubner at in dot tum dot de GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25309