gnu/gcc/a7421d94bbe7a3c673187ffb4e62e8e1926c8c7b 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)
2 files changed