This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug lto/52605] New: LTO -g ICE when looking up context of VMTs of classes defined within functions
- From: "jamborm at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 16 Mar 2012 16:06:37 +0000
- Subject: [Bug lto/52605] New: LTO -g ICE when looking up context of VMTs of classes defined within functions
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52605
Bug #: 52605
Summary: LTO -g ICE when looking up context of VMTs of classes
defined within functions
Classification: Unclassified
Product: gcc
Version: 4.8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: lto
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: jamborm@gcc.gnu.org
Host: x86_64-linux-gnu
Target: x86_64-linux-gnu
Created attachment 26905
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26905
Testcase
When compiling the attached testcase with -flto and -g, I get the
following ICE:
lto1: internal compiler error: tree check: expected tree that contains âdecl
minimalâ structure, have ârecord_typeâ in lookup_decl_die, at dwarf2out.c:5118
This is the same problem I first encountered when LTOing Firefox and
which I reported in the mailing list a while ago
(http://gcc.gnu.org/ml/gcc-patches/2012-03/msg00551.html) but this
testcase is close to minimal.
The reason why we do not hit this wrong use of decl_function_context
without LTO is that the function dwarf2out_decl is never called on
VMTs when not doing LTO.