]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/cp/ChangeLog
PR c++/89381 - implicit copy and using-declaration.
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 6 Mar 2019 20:28:47 +0000 (20:28 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 6 Mar 2019 20:28:47 +0000 (20:28 +0000)
commitbc17f5fddc3e87ff0691c6e7e94c09dcd4dab771
tree01a86949dc25de23a741ff5c62c1ea411946c662
parentaa49bda00836c685a12ae2447d20924d7ce00df7
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@269442 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/testsuite/g++.dg/cpp0x/implicit16.C [new file with mode: 0644]