================
@@ -4462,6 +4462,9 @@ TemplateDeductionResult Sema::DeduceTemplateArguments(
       ParamTypesForArgChecking.push_back(ParamType);
 
       if (ParamIdx == 0 && HasExplicitObject) {
+        if (ObjectType.isNull())
+          return TemplateDeductionResult::InvalidExplicitArguments;
----------------
mizvekov wrote:

Also, if we already diagnosed the error that led to the null template argument, 
the most appropriate return code would be 
`TemplateDeductionResult::AlreadyDiagnosed`.

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

Reply via email to