http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52260
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-02-16 08:50:11 UTC --- Author: jakub Date: Thu Feb 16 08:50:02 2012 New Revision: 184304 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=184304 Log: PR debug/52260 * dwarf2out.c (copy_decls_walk): Fill in *slot before traversing children with clone_tree_hash, not after it. * g++.dg/debug/dwarf2/pr52260.C: New test. Added: branches/gcc-4_6-branch/gcc/testsuite/g++.dg/debug/dwarf2/pr52260.C Modified: branches/gcc-4_6-branch/gcc/ChangeLog branches/gcc-4_6-branch/gcc/dwarf2out.c branches/gcc-4_6-branch/gcc/testsuite/ChangeLog