Bug 40818 - internal compiler error: in lto_output_tree_ref, at lto-streamer-out.c:821
Summary: internal compiler error: in lto_output_tree_ref, at lto-streamer-out.c:821
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: lto (show other bugs)
Version: 4.5.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-21 16:43 UTC by Eugene A. Strizhov
Modified: 2009-12-11 16:47 UTC (History)
2 users (show)

See Also:
Host: x86_64-linux-gnu
Target: arm-elf-eabi
Build: x86_64-linux-gnu
Known to work:
Known to fail:
Last reconfirmed: 2009-07-22 00:09:47


Attachments
testcase (86 bytes, text/plain)
2009-07-21 16:45 UTC, Eugene A. Strizhov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eugene A. Strizhov 2009-07-21 16:43:12 UTC
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)
Comment 1 Eugene A. Strizhov 2009-07-21 16:45:03 UTC
Created attachment 18237 [details]
testcase
Comment 2 Ben Elliston 2009-07-22 00:09:47 UTC
Confirmed.  ICE does not occur without -flto.
Comment 3 Ben Elliston 2009-07-23 00:09:36 UTC
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

Comment 4 Richard Biener 2009-10-18 12:57:27 UTC
Is this still a problem on arm?
Comment 5 Eugene A. Strizhov 2009-10-23 07:51:48 UTC
I've rechecked it with lto merged with rev. 152279 and there is no effect any more.

Comment 6 Richard Biener 2009-12-11 16:47:14 UTC
Fixed thus.