================ @@ -11846,19 +11854,21 @@ static void DiagnoseFailedEnableIfAttr(Sema &S, OverloadCandidate *Cand) { } static void DiagnoseFailedExplicitSpec(Sema &S, OverloadCandidate *Cand) { - ExplicitSpecifier ES = ExplicitSpecifier::getFromDecl(Cand->Function); + assert(Cand->Function && "Candidate must be a function"); + Function *CandFunc = Cand->Function; ---------------- shafik wrote:
```suggestion FunctionDecl *CandFunc = Cand->Function; ``` Whoops missed this the first time around, looks like a typo, please fix. https://github.com/llvm/llvm-project/pull/98965 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits