When throwing an elidable object, first try to treat the subexpression
commit17e3347522f4c8fbb49ad11f37b578ce9f706653
authorDouglas Gregor <doug.gregor@gmail.com>
Fri, 21 Jan 2011 22:46:35 +0000 (21 22:46 +0000)
committerDouglas Gregor <doug.gregor@gmail.com>
Fri, 21 Jan 2011 22:46:35 +0000 (21 22:46 +0000)
treee42e929167b7928c6792531b8ef00b2c8c686d1b
parent363bb971afbbbab45a575775c1f8acb9a478ab76
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