egcs snapshot 19990418 internal compiler error
Jeffrey A Law
law@upchuck.cygnus.com
Sun May 23 21:13:00 GMT 1999
In message <Pine.SOL.3.95q.990419223137.4702A-100000@red.csi.cam.ac.uk>you wr
ite:
> The following source:
>
> void foo(void) { int bar[25000][25000]; }
>
> gives an internal compiler error with egcs snapshot 19990418 on
> i686-pc-linux-gnu. It's not clear it can do anything useful (though egcs
> 1.1.2 silently compiles it), but it shouldn't ICE.
Agreed, but I haven't gotten around to fixing it yet.
Basically the size of "bar" (in bits) overflows a 32bit HOST_WIDE_INT. This
causes the compiler to think that the array is variable sized and triggers
the odd looking abort.
jeff
More information about the Gcc-bugs
mailing list