* class.c (type_has_user_declared_move_constructor,
commitcd77b36cdc71b4211f783bb353e03ee2656a50f8
authornathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 17 Jul 2017 15:57:59 +0000 (17 15:57 +0000)
committernathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 17 Jul 2017 15:57:59 +0000 (17 15:57 +0000)
tree3c5ec1dc05587e8598c06b9f0124ce3a6f062e68
parent6f412e1ca542f89258a54f828e3f0fbbd3e8c8fc
* class.c (type_has_user_declared_move_constructor,
type_has_user_declared_move_assign): Combine into ...
(classtype_has_user_move_assign_or_move_ctor_p): ... this new function.
* cp-tree.h (type_has_user_declared_move_constructor,
type_has_user_declared_move_assign): Combine into ...
(classtype_has_user_move_assign_or_move_ctor_p): ... this. Declare.
* method.c (maybe_explain_implicit_delete): Use it.
(lazily_declare_fn): Use it.
* tree.c (type_has_nontrivial_copy_init): Use it.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@250280 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/cp/cp-tree.h
gcc/cp/method.c
gcc/cp/tree.c