https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92145
--- Comment #1 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Jason Merrill <ja...@gcc.gnu.org>: https://gcc.gnu.org/g:37846c42f1f5ac4d9ba190d49c4373673c89c8b5 commit r12-175-g37846c42f1f5ac4d9ba190d49c4373673c89c8b5 Author: Jason Merrill <ja...@redhat.com> Date: Fri Apr 23 16:41:35 2021 -0400 c++: -Wdeprecated-copy and using operator= [PR92145] For the purpose of [depr.impldec] "if the class has a user-declared copy assignment operator", an operator= brought in from a base class with 'using' may be a copy-assignment operator, but it isn't a copy-assignment operator for the derived class. gcc/cp/ChangeLog: PR c++/92145 * class.c (classtype_has_depr_implicit_copy): Check DECL_CONTEXT of operator=. gcc/testsuite/ChangeLog: PR c++/92145 * g++.dg/cpp0x/depr-copy3.C: New test.