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) -- Summary: internal compiler error: in lto_output_tree_ref, at lto- streamer-out.c:821 Product: gcc Version: lto Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: estrizhov at topcon dot com GCC build triplet: x86_64-linux-gnu GCC host triplet: x86_64-linux-gnu GCC target triplet: arm-elf-eabi http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40818