This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug lto/52605] 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: Wed, 02 May 2012 19:50:40 +0000
- Subject: [Bug lto/52605] LTO -g ICE when looking up context of VMTs of classes defined within functions
- Auto-submitted: auto-generated
- References: <bug-52605-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52605
--- Comment #2 from Martin Jambor <jamborm at gcc dot gnu.org> 2012-05-02 19:50:40 UTC ---
Author: jamborm
Date: Wed May 2 19:50:37 2012
New Revision: 187063
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=187063
Log:
2012-05-02 Martin Jambor <mjambor@suse.cz>
PR lto/52605
* dwarf2out.c (dwarf2out_decl): Only lookup die representing context
of a variable when the contect is a function.
* gcc/testsuite/g++.dg/lto/pr52605_0.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/lto/pr52605_0.C
Modified:
trunk/gcc/ChangeLog
trunk/gcc/dwarf2out.c
trunk/gcc/testsuite/ChangeLog