[all-commits] [llvm/llvm-project] 89b097: [Sema] Fix deleted function problem in implicitly ...
nullptr-cpp via All-commits
all-commits at lists.llvm.org
Thu Dec 31 23:48:13 PST 2020
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 89b0972aa2f58f927633c63570b36550a17f4e63
https://github.com/llvm/llvm-project/commit/89b0972aa2f58f927633c63570b36550a17f4e63
Author: Yang Fan <nullptr.cpp at gmail.com>
Date: 2021-01-01 (Fri, 01 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
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