[all-commits] [llvm/llvm-project] 25558a: [C++20][Modules] Update ADL to handle basic.lookup...

iains via All-commits all-commits at lists.llvm.org
Mon Jul 25 06:29:34 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 25558a1bfd79e03bed74873ab83ccfc3650fb64f
  Author: Iain Sandoe <iain at sandoe.co.uk>
  Date:   2022-07-25 (Mon, 25 Jul 2022)

  Changed paths:
    M clang/include/clang/Sema/Overload.h
    M clang/lib/Sema/SemaLookup.cpp
    M clang/lib/Sema/SemaOverload.cpp
    A clang/test/CXX/basic/basic.lookup/basic.lookup.argdep/p5-ex2.cpp

  Log Message:
  [C++20][Modules] Update ADL to handle basic.lookup.argdep p4 [P1815R2 part 1]

This includes the revised provisions of [basic.lookup.argdep] p4

1. ADL is amended to handle p 4.3 where functions in trasitively imported modules may
become visible when they are exported in the same namespace as a visible type.

2. If a function is in a different modular TU, and has internal-linkage, we invalidate
its entry in an overload set.

[basic.lookup.argdep] p5 ex 2 now passes.

Differential Revision: https://reviews.llvm.org/D129174

More information about the All-commits mailing list