------- Additional Comments From mmikucionis at gmail dot com 2005-01-21 13:37 ------- I have very similar situation but with even worse results:
struct foo { int i; char* s[]; } arr[] = { { 1, { "first", "second" } }, { 2, { "third", "fourth" } } }; gcc (GCC) 3.3.5 (Debian 1:3.3.5-6) and gcc-3.4 (GCC) 3.4.4 20041218 (prerelease) (Debian 3.4.3-7) say the following: $ gcc-3.3 struct.cc struct.cc:11: internal compiler error: in tree_low_cst, at tree.c:3255 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. For Debian GNU/Linux specific bug reporting instructions, see <URL:file:///usr/share/doc/gcc-3.3/README.Bugs>. gcc 2.95.4 says the following: $ gcc-2.95 struct.cc struct.cc:11: excess elements in aggregate initializer struct.cc:11: excess elements in aggregate initializer I am not sure whether the code is correct according to standards, but gcc should not break there :-/ -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19435