[clang] [Clang][Sema] Ensure that the selected candidate for a member function explicit specialization is more constrained than all others (PR #101721)
Richard Smith via cfe-commits
cfe-commits at lists.llvm.org
Fri Aug 2 16:48:19 PDT 2024
================
@@ -10465,7 +10466,7 @@ Sema::ActOnFunctionDeclarator(Scope *S, Declarator &D, DeclContext *DC,
Previous))
NewFD->setInvalidDecl();
}
- } else if (isMemberSpecialization && isa<CXXMethodDecl>(NewFD)) {
+ } else if (isMemberSpecialization && !FunctionTemplate) {
----------------
zygoloid wrote:
Same question here: are we still doing the checks for an explicit specialization of a member function template?
https://github.com/llvm/llvm-project/pull/101721
More information about the cfe-commits
mailing list