================
@@ -1398,5 +1807,30 @@ void Sema::DeclareImplicitDeductionGuides(TemplateDecl 
*Template,
           ->getTemplatedDecl())
       ->setDeductionCandidateKind(DeductionCandidate::Copy);
 
+  CXXRecordDecl *TemplatedDecl = Pattern->getTemplatedDecl();
+  if (getLangOpts().CPlusPlus23 && TemplatedDecl->hasDefinition()) {
----------------
antangelo wrote:

Given the uncertainty with open CWG issues and the potential breakage of code 
on earlier standards versions, I think it's less risky to keep it constrained 
to C++23 for now. It's probably worth revisiting in the future, though.

https://github.com/llvm/llvm-project/pull/98788
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to