gnu/gcc/fe059756ddc4ec4e357a73d6385fd93db202c66e 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.
2 files changed