[all-commits] [llvm/llvm-project] 74f93b: [Sema] Fix deleted function problem in implicitly ...

nullptr-cpp via All-commits all-commits at lists.llvm.org
Tue Jan 5 18:06:08 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 74f93bc373d089e757bb65cf8b30b63a4eae8b69
      https://github.com/llvm/llvm-project/commit/74f93bc373d089e757bb65cf8b30b63a4eae8b69
  Author: Yang Fan <nullptr.cpp at gmail.com>
  Date:   2021-01-06 (Wed, 06 Jan 2021)

  Changed paths:
    M clang/lib/Sema/SemaInit.cpp
    M clang/lib/Sema/SemaStmt.cpp
    A clang/test/CXX/class/class.init/class.copy.elision/p3.cpp
    M clang/test/SemaCXX/warn-return-std-move.cpp

  Log Message:
  -----------
  [Sema] Fix deleted function problem in implicitly movable test

In implicitly movable test, a two-stage overload resolution is performed.
If the first overload resolution selects a deleted function, Clang directly
performs the second overload resolution, without checking whether the
deleted function matches the additional criteria.

This patch fixes the above problem.

Reviewed By: Quuxplusone

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




More information about the All-commits mailing list