http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46832
Summary: internal compiler error: Segmentation fault Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassig...@gcc.gnu.org ReportedBy: mario-baum...@web.de Created attachment 22665 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22665 c source Hi all, the attached source file foo.i produces an ICE: Segmentation fault ... > gcc -m32 -O2 foo.i foo.i: In function 'foo': foo.i:2:6: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. ... compiled with optimisation -O2. It works fine with -O1 and -O0. Mario. > uname -a Linux yoda.intec.dom 2.6.18-194.26.1.el5 #1 SMP Tue Nov 9 12:54:20 EST 2010 x86_64 x86_64 x86_64 GNU/Linux > rpm -qa "glibc*" | grep -e 'glibc-[0-9]' | sort -u glibc-2.5-49.el5_5.7 > g++ -v Using built-in specs. COLLECT_GCC=g++ COLLECT_LTO_WRAPPER=/opt/gcc/4.6.0-20101206-svn167488/x86_64/libexec/gcc/x86_64-unknown-linux-gnu/4.6.0/lto-wrapper Target: x86_64-unknown-linux-gnu Configured with: ./configure --with-cloog=/opt/gcc/svn/aux --with-gmp=/opt/gcc/svn/aux --with-mpc=/opt/gcc/svn/aux --with-mpfr=/opt/gcc/svn/aux --with-ppl=/opt/gcc/svn/aux --disable-nls --enable-languages=c,c++,fortran --prefix=/opt/gcc/4.6.0-20101206-svn167488/x86_64 Thread model: posix gcc version 4.6.0 20101206 (experimental) (GCC) > ld -v GNU ld (GNU Binutils) 2.21.51.20101206