I've tried to compile source where `enum' in constructor is presense and used inside. This combination issues internal error. Sample source file is attached, command line is: g++ -flto -c err-lto-lso-l821.c g++ -v: Using built-in specs. COLLECT_GCC=/home/estrizhov/tools/arm-elf-eabi-lto/bin/arm-elf-eabi-g++ COLLECT_LTO_WRAPPER=/home/estrizhov/tools/arm-elf-eabi-lto/libexec/gcc/arm-elf-eabi/4.5.0/lto-wrapper Target: arm-elf-eabi Configured with: /home/estrizhov/GNU/lto/lto/configure --prefix=/home/estrizhov/tools/arm-elf-eabi-lto --target=arm-elf-eabi --srcdir=/home/ estrizhov/GNU/lto/lto --disable-nls --disable-shared --with-gcc --with-gnu-ld --with-gnu-as --with-stabs --enable-languages=c,c++ --enable-m ultilib --with-newlib --disable-libssp --disable-libstdcxx-pch --disable-libmudflap --enable-maintainer-mode --enable-lto --disable-bootstra p --with-libelf=/home/estrizhov/tools/arm-rtems --with-libelf-include=/home/estrizhov/tools/arm-rtems/include --with-libelf-lib=/home/estriz hov/tools/arm-rtems/lib Thread model: single gcc version 4.5.0 20090714 (experimental) (lto merged with rev 149625)
Created attachment 18237 [details] testcase
Confirmed. ICE does not occur without -flto.
Subject: Bug 40818 Author: bje Date: Thu Jul 23 00:09:23 2009 New Revision: 149966 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=149966 Log: PR lto/40818 * g++.dg/lto/pr40818_0.C: New. Added: branches/lto/gcc/testsuite/g++.dg/lto/pr40818_0.C Modified: branches/lto/gcc/testsuite/ChangeLog.lto
Is this still a problem on arm?
I've rechecked it with lto merged with rev. 152279 and there is no effect any more.
Fixed thus.