This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/52637] [4.7 regression] ICE producing debug info for c++11 code using local class as template argument
- From: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 20 Jun 2012 07:27:19 +0000
- Subject: [Bug c++/52637] [4.7 regression] ICE producing debug info for c++11 code using local class as template argument
- Auto-submitted: auto-generated
- References: <bug-52637-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52637
--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> 2012-06-20 07:22:29 UTC ---
Author: jason
Date: Wed Jun 20 07:22:21 2012
New Revision: 188812
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=188812
Log:
PR c++/52637
* dwarf2out.c (modified_type_die): Use scope_die_for.
(gen_type_die_with_usage, dwarf2out_finish): Likewise.
(uses_local_type_r, uses_local_type): New.
(scope_die_for): Keep a type that uses a local type in local scope.
Use get_context_die for namespace and type scope.
Added:
branches/gcc-4_7-branch/gcc/testsuite/g++.dg/debug/dwarf2/localclass3.C
branches/gcc-4_7-branch/gcc/testsuite/g++.dg/debug/dwarf2/namespace-2.C
branches/gcc-4_7-branch/gcc/testsuite/g++.dg/debug/localclass1.C
Modified:
branches/gcc-4_7-branch/gcc/ChangeLog
branches/gcc-4_7-branch/gcc/dwarf2out.c
branches/gcc-4_7-branch/gcc/testsuite/ChangeLog
--- Comment #5 from Jason Merrill <jason at gcc dot gnu.org> 2012-06-20 07:27:19 UTC ---
Author: jason
Date: Wed Jun 20 07:27:07 2012
New Revision: 188814
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=188814
Log:
PR c++/52637
* g++.dg/debug/localclass1.C: New.
Added:
trunk/gcc/testsuite/g++.dg/debug/localclass1.C
Modified:
trunk/gcc/testsuite/ChangeLog