aboutsummaryrefslogtreecommitdiff
path: root/gcc/dwarf2out.c
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2015-05-05 22:24:38 -0400
committerJason Merrill <jason@gcc.gnu.org>2015-05-05 22:24:38 -0400
commit15ed2619b28355685f8a0010e10dc4198941df38 (patch)
tree2579afedfc3001f0194141f8e203af7662b07db9 /gcc/dwarf2out.c
parentf8aa3dd388ad8726e23c20e50bd7d4561fd0bc38 (diff)
downloadgcc-15ed2619b28355685f8a0010e10dc4198941df38.zip
gcc-15ed2619b28355685f8a0010e10dc4198941df38.tar.gz
gcc-15ed2619b28355685f8a0010e10dc4198941df38.tar.bz2
Fix gdb.cp/anon-struct.cc with -std=c++11.
gcc/ * dwarf2out.c (gen_member_die): Don't emit anything for an anonymous class constructor. gcc/cp/ * decl2.c (reset_type_linkage_2): Update the DECL_NAME of a maybe-in-charge constructor. From-SVN: r222839
Diffstat (limited to 'gcc/dwarf2out.c')
-rw-r--r--gcc/dwarf2out.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index ddca2a8..cb2656c 100644
--- a/gcc/dwarf2out.c
+++ b/gcc/dwarf2out.c
@@ -19951,6 +19951,10 @@ gen_member_die (tree type, dw_die_ref context_die)
/* Don't include clones in the member list. */
if (DECL_ABSTRACT_ORIGIN (member))
continue;
+ /* Nor constructors for anonymous classes. */
+ if (DECL_ARTIFICIAL (member)
+ && dwarf2_name (member, 0) == NULL)
+ continue;
child = lookup_decl_die (member);
if (child)