[all-commits] [llvm/llvm-project] 9b12c0: [clang] CWG2398: improve overload resolution backw...

Matheus Izvekov via All-commits all-commits at lists.llvm.org
Sat Oct 5 14:51:57 PDT 2024


  Branch: refs/heads/users/mizvekov/clang-cwg2398-improve-overload-resolution
  Home:   https://github.com/llvm/llvm-project
  Commit: 9b12c0b5a0b701984a83308273385c53ced29e41
      https://github.com/llvm/llvm-project/commit/9b12c0b5a0b701984a83308273385c53ced29e41
  Author: Matheus Izvekov <mizvekov at gmail.com>
  Date:   2024-10-05 (Sat, 05 Oct 2024)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/include/clang/Sema/Sema.h
    M clang/include/clang/Sema/TemplateDeduction.h
    M clang/lib/Sema/SemaLookup.cpp
    M clang/lib/Sema/SemaTemplate.cpp
    M clang/lib/Sema/SemaTemplateDeduction.cpp
    M clang/lib/Sema/SemaTemplateInstantiate.cpp
    M clang/test/SemaTemplate/cwg2398.cpp

  Log Message:
  -----------
  [clang] CWG2398: improve overload resolution backwards compat

With this change, we discriminate if the primary template and which partial
specializations would have participated in overload resolution prior to
P0522 changes.

We collect those in an initial set. If this set is not empty, or the
primary template would have matched, we proceed with this set as the
candidates for overload resolution.

Otherwise, we build a new overload set with everything else, and proceed
as usual.



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