]> granicus.if.org Git - clang/commit
Fix bug where a class's (deleted) copy constructor would be implicitly given a
authorRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 20 Apr 2012 18:46:14 +0000 (18:46 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 20 Apr 2012 18:46:14 +0000 (18:46 +0000)
commit704c8f76bbe2de68375f7f146e75bd74de6dd518
tree96ea11c79792531e3f1915f0dd9d48bba36519fa
parent3a0b7b6ac7eecf93ad3fdd5b21a34d5a6f20cca4
Fix bug where a class's (deleted) copy constructor would be implicitly given a
non-const reference parameter type if the class had any subobjects with deleted
copy constructors. This causes a rejects-valid if the class's copy constructor
is explicitly defaulted (as happens for some implementations of std::pair etc).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@155218 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Sema/Sema.h
lib/Sema/SemaDeclCXX.cpp
lib/Sema/SemaLookup.cpp
test/CXX/special/class.copy/implicit-move.cpp
test/CXX/special/class.copy/p8-cxx11.cpp [new file with mode: 0644]