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

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 1 07:15:40 PDT 2026


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

This `if` statement is pretty mind-bending.  Can we extract variables/etc to make this more clear what is going on?  Either way it desperately needs a comment.

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


More information about the cfe-commits mailing list