PR c++/89381 - implicit copy and using-declaration.
authorJason Merrill <jason@redhat.com>
Wed, 6 Mar 2019 20:28:47 +0000 (15:28 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 6 Mar 2019 20:28:47 +0000 (15:28 -0500)
commit2de5d0ea90d2e64ff3d345b17228043e08a5d1ac
tree01a86949dc25de23a741ff5c62c1ea411946c662
parent71b6cb2bbccba8922a8c7e9082a13a02dee7e57d
PR c++/89381 - implicit copy and using-declaration.

Here the used base<int>::operator= gets into the list of foo's bindings for
operator=, but it shouldn't make the copy ctor deleted.

* class.c (classtype_has_move_assign_or_move_ctor_p): Don't consider
op= brought in by a using-declaration.

From-SVN: r269442
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/testsuite/g++.dg/cpp0x/implicit16.C [new file with mode: 0644]