]> granicus.if.org Git - clang/commit
Improve our handling of C++ [class.copy]p3, which specifies that a
authorDouglas Gregor <dgregor@apple.com>
Mon, 8 Nov 2010 17:16:59 +0000 (17:16 +0000)
committerDouglas Gregor <dgregor@apple.com>
Mon, 8 Nov 2010 17:16:59 +0000 (17:16 +0000)
commit6493cc50b66c2d097b3e22514bbe303048c4a8ff
tree95cab209c6d292e458dc8122e498550f837233da
parent67e40d4a8627b951e98ad92fd927433f325a1c30
Improve our handling of C++ [class.copy]p3, which specifies that a
constructor template will not be used to copy a class object to a
value of its own type. We were eliminating all constructor templates
whose specializations look like a copy constructor, which eliminated
important candidates. Fixes PR8182.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@118418 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/DeclCXX.h
lib/AST/DeclCXX.cpp
lib/Sema/SemaInit.cpp
lib/Sema/SemaOverload.cpp
test/SemaTemplate/constructor-template.cpp