egcs snapshot 19990418 internal compiler error

Jeffrey A Law
Sun May 23 21:13:00 GMT 1999

  In message <>you wr
  > 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.


More information about the Gcc-bugs mailing list