[all-commits] [llvm/llvm-project] 5f62c7: [C++20] [Modules] Use current named module to do m...

Chuanqi Xu via All-commits all-commits at lists.llvm.org
Thu Jul 3 04:04:31 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5f62c791061d5fb39e3686126042e4a090132efc
      https://github.com/llvm/llvm-project/commit/5f62c791061d5fb39e3686126042e4a090132efc
  Author: Chuanqi Xu <yedeng.yd at linux.alibaba.com>
  Date:   2025-07-03 (Thu, 03 Jul 2025)

  Changed paths:
    M clang/lib/Serialization/ASTReader.cpp
    A clang/test/Modules/ModulesLocalNamespace.cppm

  Log Message:
  -----------
  [C++20] [Modules] Use current named module to do module local lookup

See the attached test for the motiviation.

Previously we dependent on the module ownership of the decl context to
perform module local lookup. But if the lookup is unqualified, we may
perform the lookup with canonical decl, which belongs to the incorrect
named module



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list