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

--- Comment #7 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The trunk branch has been updated by Jason Merrill <[email protected]>:

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

commit r17-682-gfe059756ddc4ec4e357a73d6385fd93db202c66e
Author: Jason Merrill <[email protected]>
Date:   Fri May 22 12:57:09 2026 -0400

    c++: defaulted ctor vs template ctor [PR125135]

    Here we were getting into a CWG1092 cycle again through
    check_non_deducible_conversions, trying to lazily declare the RE move
    constructor, looking for a constructor to move A, considering the
    constructor template which takes RE&, and so trying to lazily declare the
RE
    constructors again.

    Let's break the cycle in the same way.

            PR c++/125135

    gcc/cp/ChangeLog:

            * pt.cc (check_non_deducible_conversions): Handle LOOKUP_DEFAULTED.

    gcc/testsuite/ChangeLog:

            * g++.dg/cpp0x/implicit18.C: New test.

Reply via email to