https://github.com/Backl1ght created 
https://github.com/llvm/llvm-project/pull/107768

fix https://github.com/llvm/llvm-project/issues/107629

TODO: add UT.
TODO: test UB mentioned in https://github.com/llvm/llvm-project/issues/107629.

>From 65172d8391cef4c0c7e239c9a09b34e061f4963a Mon Sep 17 00:00:00 2001
From: Backl1ght <backlight....@gmail.com>
Date: Mon, 9 Sep 2024 00:34:31 +0800
Subject: [PATCH] fix

---
 clang/lib/Sema/SemaOverload.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/clang/lib/Sema/SemaOverload.cpp b/clang/lib/Sema/SemaOverload.cpp
index 861b0a91240b3b..fdfa18eff93037 100644
--- a/clang/lib/Sema/SemaOverload.cpp
+++ b/clang/lib/Sema/SemaOverload.cpp
@@ -16265,6 +16265,7 @@ ExprResult Sema::FixOverloadedFunctionReference(Expr 
*E, DeclAccessPair Found,
   }
 
   if (UnresolvedLookupExpr *ULE = dyn_cast<UnresolvedLookupExpr>(E)) {
+    CheckUnresolvedLookupAccess(ULE, Found);
     // FIXME: avoid copy.
     TemplateArgumentListInfo TemplateArgsBuffer, *TemplateArgs = nullptr;
     if (ULE->hasExplicitTemplateArgs()) {

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to