================
@@ -1519,7 +1519,8 @@ bool Sema::IsAtLeastAsConstrained(NamedDecl *D1,
auto IsExpectedEntity = [](const FunctionDecl *FD) {
FunctionDecl::TemplatedKind Kind = FD->getTemplatedKind();
return Kind == FunctionDecl::TK_NonTemplate ||
- Kind == FunctionDecl::TK_FunctionTemplate;
----------------
shafik wrote:
So was `TK_FunctionTemplate` never correct? How do we know we have the right
set of expected Entities here?
Do the tests we have cover all three cases here? If not can we add a test that
covers all three? If not why can't we?
https://github.com/llvm/llvm-project/pull/98671
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits