From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4276 invoked by alias); 16 Mar 2012 16:06:58 -0000 Received: (qmail 4223 invoked by uid 22791); 16 Mar 2012 16:06:54 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 16 Mar 2012 16:06:40 +0000 From: "jamborm at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/52605] New: LTO -g ICE when looking up context of VMTs of classes defined within functions Date: Fri, 16 Mar 2012 16:49:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: lto X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jamborm at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2012-03/txt/msg01413.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D52605 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=3D26905 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 =E2= =80=98decl minimal=E2=80=99 structure, have =E2=80=98record_type=E2=80=99 in lookup_de= cl_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.