================
@@ -4111,7 +4111,10 @@ static ActionResult<CXXRecordDecl *> 
getPatternForClassTemplateSpecialization(
         if (Ambiguous) {
           // Partial ordering did not produce a clear winner. Complain.
           Inst.Clear();
-          ClassTemplateSpec->setInvalidDecl();
+
+          if (!S.isSFINAEContext())
+            ClassTemplateSpec->setInvalidDecl();
----------------
AaronBallman wrote:

In the absence of a concrete reason to do this, I'd say it's fine to remove the 
`setInvalidDecl()` entirely as you did originally. Sorry for the noise!

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

Reply via email to