https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92169
--- Comment #6 from Marek Polacek <mpolacek at gcc dot gnu.org> --- Started with r0-116587-g0fd0752e83525409addcdb904c67dc535bd5c1d1: commit 0fd0752e83525409addcdb904c67dc535bd5c1d1 Author: Jason Merrill <ja...@redhat.com> Date: Thu May 3 12:19:02 2012 -0400 dwarf2out.c (modified_type_die): Use scope_die_for. * 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. From-SVN: r187106