From 7996b7273cfb3b494e5c31e8c68e0f7fd9c87aa1 Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Fri, 13 Apr 2012 15:43:37 -0400 Subject: 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 --- gcc/cp/decl2.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'gcc/cp/decl2.c') 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 -- cgit v1.1