[clang] [Clang] Correctly handle taking the address of an explicit object member function template (PR #147046)
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 7 06:59:57 PDT 2025
================
@@ -7876,6 +7883,7 @@ static void AddMethodTemplateCandidateImmediately(
// function template are combined with the set of non-template candidate
// functions.
TemplateDeductionInfo Info(CandidateSet.getLocation());
+ auto Method = cast<CXXMethodDecl>(MethodTmpl->getTemplatedDecl());
----------------
AaronBallman wrote:
```suggestion
auto *Method = cast<CXXMethodDecl>(MethodTmpl->getTemplatedDecl());
```
https://github.com/llvm/llvm-project/pull/147046
More information about the cfe-commits
mailing list