[clang] [Clang][Sema] Ensure that the selected candidate for a member function explicit specialization is more constrained than all others (PR #101721)
Krystian Stasiowski via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 5 06:58:29 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) {
----------------
sdkrystian wrote:
Yes
https://github.com/llvm/llvm-project/pull/101721
More information about the cfe-commits
mailing list