diff options
author | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-05-06 02:24:38 +0000 |
---|---|---|
committer | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-05-06 02:24:38 +0000 |
commit | 2b89ba2d35c26e10b1bdbbbf68aae402bfb9a04c (patch) | |
tree | 2579afedfc3001f0194141f8e203af7662b07db9 /gcc/dwarf2out.c | |
parent | ed723026f6db736b003b7d45a9ab77d8e96bdc04 (diff) | |
download | gcc-2b89ba2d35c26e10b1bdbbbf68aae402bfb9a04c.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@222839 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/dwarf2out.c')
-rw-r--r-- | gcc/dwarf2out.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index ddca2a83df4..cb2656c4285 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) |