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

--- Comment #3 from CVS 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:6384e940a6db379b0524465cf6cbbd0996b48485

commit r11-8431-g6384e940a6db379b0524465cf6cbbd0996b48485
Author: Jason Merrill <ja...@redhat.com>
Date:   Tue May 18 12:06:36 2021 -0400

    c++: "perfect" implicitly deleted move [PR100644]

    Here we were ignoring the template constructor because the implicit move
    constructor had all perfect conversions.  But CWG1402 says that an
    implicitly deleted move constructor is ignored by overload resolution; we
    implement that instead by preferring any other candidate in joust, to get
    better diagnostics, but that means we need to handle that case here as
well.

    gcc/cp/ChangeLog:

            PR c++/100644
            * call.c (perfect_candidate_p): An implicitly deleted move
            is not perfect.

    gcc/testsuite/ChangeLog:

            * g++.dg/cpp0x/implicit-delete1.C: New test.

Reply via email to