class.c (add_implicitly_declared_members): Use classtype_has_move_assign_or_move_ctor_p.
authorNathan Sidwell <nathan@acm.org>
Wed, 19 Jul 2017 13:28:21 +0000 (13:28 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Wed, 19 Jul 2017 13:28:21 +0000 (13:28 +0000)
commit4a18c06666f71af6337a76be16d4deb67f57eb51
tree788e26e4b28be4752664e9f6f6445a3f394107e5
parent1eba0867060b1643d71d4185fbc23995248092bf
class.c (add_implicitly_declared_members): Use classtype_has_move_assign_or_move_ctor_p.

* class.c (add_implicitly_declared_members): Use
classtype_has_move_assign_or_move_ctor_p.
(classtype_has_move_assign_or_move_ctor,
classtype_has_user_move_assign_or_move_ctor_p): Merge into ...
(classtype_has_move_assign_or_move_ctor_p): ... this new function.
* cp-tree.h (classtype_has_user_move_assign_or_move_ctor_p):
Replace with ...
(classtype_has_move_assign_or_move_ctor_p): ... this.
* method.c (maybe_explain_implicit_delete, lazily_declare_fn): Adjust.
* tree.c (type_has_nontrivial_copy_init): Adjust.

From-SVN: r250344
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/cp/cp-tree.h
gcc/cp/method.c
gcc/cp/tree.c