https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125135
--- Comment #8 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-16 branch has been updated by Jason Merrill <[email protected]>: https://gcc.gnu.org/g:a7421d94bbe7a3c673187ffb4e62e8e1926c8c7b commit r16-8957-ga7421d94bbe7a3c673187ffb4e62e8e1926c8c7b Author: Jason Merrill <[email protected]> Date: Sat May 23 00:26:30 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. (cherry picked from commit fe059756ddc4ec4e357a73d6385fd93db202c66e)
