aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/decl2.c
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2012-04-13 15:43:37 -0400
committerJason Merrill <jason@gcc.gnu.org>2012-04-13 15:43:37 -0400
commit7996b7273cfb3b494e5c31e8c68e0f7fd9c87aa1 (patch)
treec11af1b0dcd2c5c9186d0e3172296dd8e2dc6240 /gcc/cp/decl2.c
parent6573c644e83d576fd16847d5c21a26c2f0500921 (diff)
downloadgcc-7996b7273cfb3b494e5c31e8c68e0f7fd9c87aa1.zip
gcc-7996b7273cfb3b494e5c31e8c68e0f7fd9c87aa1.tar.gz
gcc-7996b7273cfb3b494e5c31e8c68e0f7fd9c87aa1.tar.bz2
re PR c++/52915 ([C++11] Deleted default-constructor of anonymous unions not honored)
PR c++/52915 * decl2.c (finish_anon_union): Use cp_finish_decl. * error.c (dump_function_name): Avoid showing anonymous "name". From-SVN: r186432
Diffstat (limited to 'gcc/cp/decl2.c')
-rw-r--r--gcc/cp/decl2.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/gcc/cp/decl2.c b/gcc/cp/decl2.c
index b048ac7..212feea 100644
--- a/gcc/cp/decl2.c
+++ b/gcc/cp/decl2.c
@@ -1456,12 +1456,7 @@ finish_anon_union (tree anon_union_decl)
}
pushdecl (anon_union_decl);
- if (building_stmt_list_p ()
- && at_function_scope_p ())
- add_decl_expr (anon_union_decl);
- else if (!processing_template_decl)
- rest_of_decl_compilation (anon_union_decl,
- toplevel_bindings_p (), at_eof);
+ cp_finish_decl (anon_union_decl, NULL_TREE, false, NULL_TREE, 0);
}
/* Auxiliary functions to make type signatures for