[all-commits] [llvm/llvm-project] e6d0b1: Correctly compute conversion seq for args to fn wi...

Utkarsh Saxena via All-commits all-commits at lists.llvm.org
Tue Oct 17 11:53:55 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e6d0b126c824222fca2f31a2ba571c2ee2bb4760
      https://github.com/llvm/llvm-project/commit/e6d0b126c824222fca2f31a2ba571c2ee2bb4760
  Author: Utkarsh Saxena <usaxena95 at gmail.com>
  Date:   2023-10-17 (Tue, 17 Oct 2023)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/lib/Sema/SemaOverload.cpp
    M clang/test/CXX/over/over.match/over.match.funcs/over.match.oper/p3-2a.cpp

  Log Message:
  -----------
  Correctly compute conversion seq for args to fn with reversed param order (#68999)

We associated conversion seq for args (when reversed) to the wrong
index.
This lead to clang believing reversed `operator==` a worse overload
candidate than the `operator==` without reversed args when both these
candidate were ambiguous.

Fixes https://github.com/llvm/llvm-project/issues/53954




More information about the All-commits mailing list