]> granicus.if.org Git - clang/commit
When throwing an elidable object, first try to treat the subexpression
authorDouglas Gregor <dgregor@apple.com>
Fri, 21 Jan 2011 22:46:35 +0000 (22:46 +0000)
committerDouglas Gregor <dgregor@apple.com>
Fri, 21 Jan 2011 22:46:35 +0000 (22:46 +0000)
commit72dfa27b415b15157a9d1fc33b6ed21f0085bed2
treee42e929167b7928c6792531b8ef00b2c8c686d1b
parent07f402cff25354c5f06f307f19b0c57c09d964bd
When throwing an elidable object, first try to treat the subexpression
as an rvalue per C++0x [class.copy]p33. If that fails, try again with
the original subexpression.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124002 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaExprCXX.cpp
test/CXX/special/class.copy/p33-0x.cpp