================
@@ -14790,9 +14808,10 @@ BuildRecoveryCallExpr(Sema &SemaRef, Scope *S, Expr
*Fn,
CXXRecordDecl *FoundInClass = nullptr;
if (DiagnoseTwoPhaseLookup(SemaRef, Fn->getExprLoc(), SS, R,
OverloadCandidateSet::CSK_Normal,
- ExplicitTemplateArgs, Args, &FoundInClass)) {
+ KnownInvalidCandidateSet, ExplicitTemplateArgs,
+ Args, &FoundInClass)) {
// OK, diagnosed a two-phase lookup issue.
- } else if (EmptyLookup) {
+ } else if (KnownInvalidCandidateSet.empty()) {
----------------
erichkeane wrote:
IS this really the same thing? We switch this from zero candidates to zero
VALID candidates? Why doesn't this lose diagnostics?
https://github.com/llvm/llvm-project/pull/222296
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits