================
@@ -3795,6 +3795,10 @@ QualType Sema::CheckTemplateIdType(ElaboratedTypeKeyword
Keyword,
/*UpdateArgsWithConversions=*/true))
return QualType();
+ // Diagnose uses of this template.
+ (void)DiagnoseUseOfDecl(Template, TemplateLoc);
+ MarkAnyDeclReferenced(TemplateLoc, Template, /*OdrUse=*/false);
----------------
erichkeane wrote:
Can we have tests for the `use-of-decl` additions here and below?
https://github.com/llvm/llvm-project/pull/191848
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits