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". -- Summary: ICE in tree_low_cst, allocating oversized array from stack Product: gcc Version: 4.0.1 Status: UNCONFIRMED Severity: minor Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: pete at void dot printf dot net CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23461