https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92145

--- Comment #4 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-11 branch has been updated by Jason Merrill
<ja...@gcc.gnu.org>:

https://gcc.gnu.org/g:f59cfce8ba6612c063a8f55267dc2caee7e0d381

commit r11-11163-gf59cfce8ba6612c063a8f55267dc2caee7e0d381
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.

    (cherry picked from commit 37846c42f1f5ac4d9ba190d49c4373673c89c8b5)
  • [Bug c++/92145] -Wdeprecated-co... cvs-commit at gcc dot gnu.org via Gcc-bugs

Reply via email to