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

--- Comment #2 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:f3ee94724686b82556c07b4d33821ae973eb9aba

commit r11-3958-gf3ee94724686b82556c07b4d33821ae973eb9aba
Author: Jason Merrill <ja...@redhat.com>
Date:   Thu Oct 15 12:54:16 2020 -0400

    c++: Fix [[deprecated]] and implicit operator==. [PR97358]

    Trying to diagnose the problem with an implicit copy function breaks if the
    function isn't actually a copy function.

    gcc/cp/ChangeLog:

            PR c++/95844
            * decl.c (copy_fn_p): Return false for a function that is neither a
            constructor nor an assignment operator.
            (move_signature_fn_p): Likewise.

    gcc/testsuite/ChangeLog:

            PR c++/95844
            * g++.dg/cpp2a/spaceship-eq10.C: New test.

Reply via email to