From 04056396ec8747e8372364793a0c2a4ea794477d Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Wed, 30 Oct 2013 15:50:36 -0400 Subject: [PATCH] * init.c (push_base_cleanups): Check ANON_AGGR_TYPE_P. From-SVN: r204226 --- gcc/cp/ChangeLog | 4 ++++ gcc/cp/init.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 97e95f41107..f71c239e58f 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +2013-10-30 Jason Merrill + + * init.c (push_base_cleanups): Check ANON_AGGR_TYPE_P. + 2013-10-30 Tobias Burnus PR other/33426 diff --git a/gcc/cp/init.c b/gcc/cp/init.c index bfd91521050..85732ff3af1 100644 --- a/gcc/cp/init.c +++ b/gcc/cp/init.c @@ -4130,7 +4130,7 @@ push_base_cleanups (void) || TREE_CODE (member) != FIELD_DECL || DECL_ARTIFICIAL (member)) continue; - if (ANON_UNION_TYPE_P (this_type)) + if (ANON_AGGR_TYPE_P (this_type)) continue; if (type_build_dtor_call (this_type)) { -- 2.30.2