c++/10776: [3.3 regression] Large aggregate initializers cause GCC to fail

Pete Gonzalez gonz@ratloop.com
Wed May 14 15:08:00 GMT 2003


http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10776 


The problem seems to be the "&data::tex::tackytexture" expression
inside the array, i.e. if I replace all instances with "0", the
code compiles successfully:

>static const TOutdoorMapData::TTriangleItem data_triangleItems[2382] = {
>   {
>     0, // &data::tex::tackytexture,
>     0,
>     { { 87, 104, 0, -778 },
>       { 95, 106, 21, -799 },
>       { 89, 109, 0, -799 } }
>   },

However, this crashes:

>const TBitmap *nullBmp = 0;
>
>static const TOutdoorMapData::TTriangleItem data_triangleItems[2382] = {
>   {
>     nullBmp,
>     0,
>     { { 87, 104, 0, -778 },
>       { 95, 106, 21, -799 },
>       { 89, 109, 0, -799 } }
>   },

I'll let you know if I find anything else.  Thanks for the quick response.

-Pete



More information about the Gcc-bugs mailing list