# g++ -O /tmp/j1.cc adaptors/lambda/lambda.cc: In function 'void __static_initialization_and_destruction_0(int, int)': adaptors/lambda/lambda.cc:15: internal compiler error: in first_vi_for_offset, at tree-ssa-structalias.c:2506
j1.cc will be attached. -O is what triggers the ICE. Compiling without optimization works. # g++ -v Using built-in specs. Target: x86_64-pc-linux-gnu Configured with: /var/tmp/portage/gcc-4.1.0_beta20050611/work/gcc-4.1-20050611/configure --enable-version-specific-runtime-libs --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.1.0-beta20050611 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.0-beta20050611/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.0-beta20050611 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.0-beta20050611/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.0-beta20050611/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.0-beta20050611/include/g++-v4 --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --disable-libunwind-exceptions --enable-multilib --disable-libgcj --enable-languages=c,c++,f95 --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu Thread model: posix gcc version 4.1.0 20050611 (experimental) -- Summary: 4.1 regression: ICE in first_vi_for_offset, at tree-ssa- structalias.c:2506 Product: gcc Version: 4.1.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: zlynx at acm dot org CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: x86_64-pc-linux-gnu GCC host triplet: x86_64-pc-linux-gnu GCC target triplet: x86_64-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22071