================
@@ -6300,7 +6300,7 @@ NamedDecl *Sema::FindInstantiatedDecl(SourceLocation Loc,
NamedDecl *D,
getTrivialTemplateArgumentLoc(UnpackedArg, QualType(), Loc));
}
QualType T = CheckTemplateIdType(TemplateName(TD), Loc, Args);
- if (T.isNull())
+ if (T.isNull() || T->containsErrors())
----------------
Sirraide wrote:
Is there a reason this check isn’t done in `CheckTemplateIdType()` instead?
Because there are a few other places where this exact pattern appears; is there
a difference between this and other uses of `CheckTemplateIdType()` that makes
it so it only makes sense to check for errors here (and if so, then that would
probably deserve a comment explaining that)?
https://github.com/llvm/llvm-project/pull/96509
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits