This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: egcs snapshot 19990418 internal compiler error



  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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]