class.c (finish_struct_methods): Done clear DECL_IN_AGGR_P here.
authorNathan Sidwell <nathan@acm.org>
Fri, 1 Sep 2017 16:34:29 +0000 (16:34 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Fri, 1 Sep 2017 16:34:29 +0000 (16:34 +0000)
commitbeb8b5c154e57f5c2e3e6f372c2bae9a10f619b4
treea2ac65fe4063afb49b3d7b389ddbe0ab6457029a
parente035be33793fa4aef8cff3358c9670a648d5d273
class.c (finish_struct_methods): Done clear DECL_IN_AGGR_P here.

* class.c (finish_struct_methods): Done clear DECL_IN_AGGR_P here.
Don't call maybe_warn_about_overly_private_class here.
(warn_hidden): Cleanup declarations and comments.
(type_has_user_provided_constructor): No need to check
CLASSTYPE_METHOD_VEC.
(type_has_user_provided_or_explicit_constructor): Likewise.
(classtype_has_move_assign_or_move_ctor_p): Likewise.
(check_bases_and_members): Don't call finish_struct_methods here.
(finish_struct_1): Call finish_struct_methods and
set_class_bindings immediately after layout.  Clear DECL_IN_AGGR_P
here.
(finish_struct): For templates process USING_DECLS and clear
DECL_IN_AGGR_P before calling finish_struct_methods. Call
maybe_warn_about_overly_private_class here.

From-SVN: r251604
gcc/cp/ChangeLog
gcc/cp/class.c