Bug 23461 - ICE in tree_low_cst, allocating oversized array from stack
Summary: ICE in tree_low_cst, allocating oversized array from stack
Status: RESOLVED DUPLICATE of bug 23426
Alias: None
Product: gcc
Classification: Unclassified
Component: c++ (show other bugs)
Version: 4.0.1
: P2 minor
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-18 15:40 UTC by Pete Gillin
Modified: 2005-08-18 15:59 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pete Gillin 2005-08-18 15:40:14 UTC
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".
Comment 1 Pete Gillin 2005-08-18 15:42:24 UTC
It's possible that this might be related to bug 22551, but I'm not sure.
Comment 2 Andrew Pinski 2005-08-18 15:59:19 UTC
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 ***