================ @@ -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(); ---------------- mizvekov wrote:
Are we still getting any benefit from marking this declaration as invalid in the remaining case? 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