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