[PATCH] D147782: [clang] Fix 'operator=' lookup in nested class

Shafik Yaghmour via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 7 14:35:43 PDT 2023


shafik added inline comments.


================
Comment at: clang/lib/Sema/SemaLookup.cpp:1328
           // namespace scope
-          SearchNamespaceScope = false;
+          SearchNamespaceScope = Name.getCXXOverloadedOperator() == OO_Equal;
         }
----------------
Maybe we should also add an `ND.isImplicit()` check as well? I am not sure if this is the correct solution either. 


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D147782/new/

https://reviews.llvm.org/D147782



More information about the cfe-commits mailing list