[PATCH] D94011: [Sema] Fix deleted function problem in implicitly movable test

Yang Fan via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 4 03:16:55 PST 2021


nullptr.cpp created this revision.
nullptr.cpp requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D94011

Files:
  clang/lib/Sema/SemaInit.cpp
  clang/lib/Sema/SemaStmt.cpp
  clang/test/CXX/class/class.init/class.copy.elision/p3.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D94011.314351.patch
Type: text/x-patch
Size: 10864 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210104/ffd6f4ed/attachment.bin>


More information about the cfe-commits mailing list