I am getting an ICE when compiling a c++ source with optimization turned one. My compiler version is
[EMAIL PROTECTED]:~/tmp$ g++-4.1 -v Using built-in specs. Target: i486-linux-gnu Configured with: ../src/configure -v --enable-languages=c,c++,java,fortran,objc,obj-c++,ada,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --program-suffix=-4.1 --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.1-1.4.2.0/jre --enable-mpfr --with-tune=i686 --enable-checking=release i486-linux-gnu Thread model: posix gcc version 4.1.1 20060511 (prerelease) (Debian 4.1.0-4) The command line that triggers the bug is g++-4.1 -c grid.i -O The output produces is grid.i: In member function 'int Dune::ALU3dGrid<dim, dimworld, elType>::size(int, int) const [with int dim = 3, int dimworld = 3, Dune::ALU3dGridElementType elType = tetra]': grid.i:52998: internal compiler error: in copy_to_mode_reg, at explow.c:577 Please submit a full bug report, When compiled without the -O the ICE does not occur. -- Summary: ICE in copy_to_mode_reg Product: gcc Version: 4.1.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: sander at mi dot fu-berlin dot de http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27826