Bug 29257 - internal compiler error: in tree_low_cst, at tree.c:3850
Summary: internal compiler error: in tree_low_cst, at tree.c:3850
Status: RESOLVED DUPLICATE of bug 29175
Alias: None
Product: gcc
Classification: Unclassified
Component: c++ (show other bugs)
Version: 4.0.3
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-28 00:34 UTC by Craig Furman
Modified: 2006-09-28 01:18 UTC (History)
4 users (show)

See Also:
Host: Debian 4.0.2-9
Target: x86_64-linux-gnu
Build: 4.0.3 20060212
Known to work:
Known to fail:
Last reconfirmed:


Attachments
Source code to produce error (113 bytes, text/plain)
2006-09-28 00:37 UTC, Craig Furman
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Craig Furman 2006-09-28 00:34:41 UTC
gcc-4.0 -v  -c gcc_bug.cpp
Using built-in specs.
Target: x86_64-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 --without-included-gettext --enable-threads=posix --enable-nls --program-suffix=-4.0 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --enable-java-awt=gtk --enable-gtk-cairo --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 x86_64-linux-gnu
Thread model: posix
gcc version 4.0.3 20060212 (prerelease) (Debian 4.0.2-9)
 /usr/lib/gcc/x86_64-linux-gnu/4.0.3/cc1plus -quiet -v -D_GNU_SOURCE gcc_bug.cpp -quiet -dumpbase gcc_bug.cpp -mtune=k8 -auxbase gcc_bug -version -o /tmp/ccyzUp8v.s
ignoring nonexistent directory "/usr/local/include/x86_64-linux-gnu"
ignoring nonexistent directory "/usr/include/x86_64-linux-gnu"
#include "..." search starts here:
#include <...> search starts here:
 /usr/lib/gcc/x86_64-linux-gnu/4.0.3/../../../../include/c++/4.0.3
 /usr/lib/gcc/x86_64-linux-gnu/4.0.3/../../../../include/c++/4.0.3/x86_64-linux-gnu
 /usr/lib/gcc/x86_64-linux-gnu/4.0.3/../../../../include/c++/4.0.3/backward
 /usr/local/include
 /usr/lib/gcc/x86_64-linux-gnu/4.0.3/include
 /usr/include
End of search list.
GNU C++ version 4.0.3 20060212 (prerelease) (Debian 4.0.2-9) (x86_64-linux-gnu)
        compiled by GNU C version 4.0.3 20060212 (prerelease) (Debian 4.0.2-9).
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
gcc_bug.cpp: In function 'void func()':
gcc_bug.cpp:13: internal compiler error: in tree_low_cst, at tree.c:3850

===========================================
gcc_bug.cpp :

 
int other () 
{
	return 10;
}

void func()
{
	const int some_size = other( ); 
	const int some_array[][some_size] = 
	{	
		{ },
	}; 
}

NOTES:

gcc-4.0 -x c -c gcc_bug.cpp produces correct output (a compiler error) ,

but :
gcc -v  -x c  -c gcc_bug.cpp
Reading specs from /usr/lib/gcc-lib/x86_64-linux-gnu/3.3.6/specs
Configured with: ../src/configure -v --enable-languages=c,c++ --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared --enable-__cxa_atexit --with-system-zlib --enable-nls --without-included-gettext --enable-clocale=gnu --enable-debug --disable-multilibx86_64-linux-gnu
Thread model: posix
gcc version 3.3.6 (Debian 1:3.3.6-12)
 /usr/lib/gcc-lib/x86_64-linux-gnu/3.3.6/cc1 -quiet -v -D__GNUC__=3 -D__GNUC_MINOR__=3 -D__GNUC_PATCHLEVEL__=6 gcc_bug.cpp -quiet -dumpbase gcc_bug.cpp -auxbasegcc_bug -version -o /tmp/ccM0TNUa.s
GNU C version 3.3.6 (Debian 1:3.3.6-12) (x86_64-linux-gnu)
        compiled by GNU C version 3.3.6 (Debian 1:3.3.6-12).
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
ignoring nonexistent directory "/usr/x86_64-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include
 /usr/lib/gcc-lib/x86_64-linux-gnu/3.3.6/include
 /usr/include
End of search list.
gcc_bug.cpp: In function `func':
gcc_bug.cpp:13: internal compiler error: in size_binop, at fold-const.c:1437
Comment 1 Craig Furman 2006-09-28 00:37:02 UTC
Created attachment 12344 [details]
Source code to produce error
Comment 2 Andrew Pinski 2006-09-28 01:18:11 UTC

*** This bug has been marked as a duplicate of 29175 ***