[clang] [clang] Fix conflicting declaration error with using_if_exists (PR #167646)

via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 1 10:51:14 PDT 2026


================
@@ -633,17 +637,24 @@ void LookupResult::resolveKind() {
     getSema().diagnoseEquivalentInternalLinkageDeclarations(
         getNameLoc(), HasNonFunction, EquivalentNonFunctions);
 
+  if ((HasNonFunction && (HasFunction || HasUnresolved)) ||
----------------
PiJoules wrote:

Done. I didn't originally add these lines since they were just moved from a few lines below, but I split up the logic and added comments describing it to the best of my understanding.

https://github.com/llvm/llvm-project/pull/167646


More information about the cfe-commits mailing list