The following is a minimal test case. Obviously, this is trying to do a dumb thing, but it shouldn't give ICE, and g++ asked me to report it. The error is "internal compiler error: in tree_low_cst, at tree.c:3843". int main() { int ptr[1000000000]; return 0; }; The output of g++ -v follows. Using built-in specs. Target: i486-linux-gnu Configured with: ../src/configure -v --enable-languages=c,c++,java,f95,objc,ada,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --enable-nls --without-included-gettext --enable-threads=posix --program-suffix=-4.0 --enable-__cxa_atexit --enable-libstdcxx-allocator=mt --enable-clocale=gnu --enable-libstdcxx-debug --enable-java-gc=boehm --enable-java-awt=gtk --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-4.0-1.4.2.0/jre --enable-mpfr --disable-werror --enable-checking=release i486-linux-gnu Thread model: posix gcc version 4.0.1 (Debian 4.0.1-2) Just in case it's relevant, the output of uname -a is "Linux [hostname] 2.4.18 #3 SMP Wed Oct 15 17:04:52 BST 2003 i686 GNU/Linux".
It's possible that this might be related to bug 22551, but I'm not sure.
This is a dup of bug 23426. The C example of this was fixed already. See PR 23426 for the current status of this bug. *** This bug has been marked as a duplicate of 23426 ***