]> granicus.if.org Git - clang/commit
Fix some wrong-code bugs in implicitly-defined assignment operators:
authorRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 13 Nov 2012 00:54:12 +0000 (00:54 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 13 Nov 2012 00:54:12 +0000 (00:54 +0000)
commit044c8aa39d582ebc6bca1720c65ddd06fb27780c
tree0a83266368cc275bf32a755e11b708ee1f6b4176
parentd449c792d98f58277e02c0ddc8330cd9de5f82f5
Fix some wrong-code bugs in implicitly-defined assignment operators:
 - In C++11, perform overload resolution over all assignment operators, rather than just looking for copy/move assignment operators.
 - Clean up after temporaries produced by operator= immediately, rather than accumulating them until the end of the function.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@167798 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaDeclCXX.cpp
test/CXX/special/class.copy/p28-cxx11.cpp [new file with mode: 0644]
test/CodeGenCXX/temporaries.cpp