[PATCH] D147283: [Sema] Search template parameter scopes before searching namespace/file scopes when performing unqualified name lookup

Akira Hatanaka via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 30 15:57:41 PDT 2023


ahatanak created this revision.
ahatanak added reviewers: rsmith, aaron.ballman.
ahatanak added a project: clang.
Herald added a project: All.
ahatanak requested review of this revision.

This fixes a bug where namespace scopes were being searched before template parameter scopes.

Delay searching namespace/file scopes in `Sema::CppLookupName` until all local scopes are searched.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D147283

Files:
  clang/lib/Sema/SemaLookup.cpp
  clang/test/SemaCXX/namespace.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D147283.509828.patch
Type: text/x-patch
Size: 3358 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230330/70fa051e/attachment.bin>


More information about the cfe-commits mailing list