# gcc -v Using built-in specs. COLLECT_GCC=/usr/x86_64-pc-linux-gnu/gcc-bin/4.5.1/gcc COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/4.5.1/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: /var/tmp/portage/sys-devel/gcc-4.5.1/work/gcc-4.5.1/configure --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.5.1 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.1/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.1 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.1/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.1/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.1/include/g++-v4 --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec --disable-fixed-point --with-ppl --with-cloog --enable-lto --enable-nls --without-included-gettext --with-system-zlib --disable-werror --enable-secureplt --enable-multilib --enable-libmudflap --disable-libssp --disable-libgomp --enable-cld --with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/4.5.1/python --enable-checking=release --disable-libgcj --enable-languages=c,c++ --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --with-bugurl=http://bugs.gentoo.org/ --with-pkgversion='Gentoo 4.5.1 p1.0, pie-0.4.5' Thread model: posix gcc version 4.5.1 (Gentoo 4.5.1 p1.0, pie-0.4.5) Building the attached preprocessed file, I can cause an ICE # g++ -flto -c SmallStrings.i -o SmallStrings.o JavaScriptCore/runtime/SmallStrings.cpp:141:1: internal compiler error: tree code ‘call_expr’ is not supported in gimple streams Please submit a full bug report, with preprocessed source if appropriate. See <http://bugs.gentoo.org/> for instructions. The file is from webkit-gtk-1.2.3.
Created attachment 21546 [details] SmallStrings.i from webkit-gtk-1.2.3
Smaller testcase: template<class T, unsigned long l> inline unsigned long foo (T (&)[l]) { return l; } struct S { char *s[4]; S (); }; S::S () { typedef int T[foo (s) == 4 ? 1 : -1]; }
As can be seen in inline unsigned long foo () { return 4; } struct S { S (); }; void bar () { typedef int T[foo () == 4 ? 1 : -1]; } S::S () { typedef int T[foo () == 4 ? 1 : -1]; } the problem only happens in cdtors, thus probably related to the cdtor duplication.
Author: rguenth Date: Thu Oct 14 15:31:36 2010 New Revision: 165471 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=165471 Log: 2010-10-14 Richard Guenther <rguenther@suse.de> PR lto/45382 * g++.dg/lto/20101014-2_0.C: New testcase. Added: trunk/gcc/testsuite/g++.dg/lto/20101014-2_0.C Modified: trunk/gcc/testsuite/ChangeLog
Works on trunk.
Let's close this.