re PR c++/44870 ([C++0x] error when calling function with rvalue argument inside...
authorJason Merrill <jason@redhat.com>
Tue, 31 May 2011 18:06:39 +0000 (14:06 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 31 May 2011 18:06:39 +0000 (14:06 -0400)
commite87b4dde327ca929b323cf63c013ec90a1dc8108
treee2ab9d1734e09c9e6a22e38a3ca145f2f51d55ec
parent5cc93ee0999f3dcea86b3b58623a85ec8f96c48a
re PR c++/44870 ([C++0x] error when calling function with rvalue argument inside template)

PR c++/44870
* tree.c (lvalue_kind): Recurse on NON_DEPENDENT_EXPR.  Handle
ARROW_EXPR, TYPEID_EXPR, and arbitrary class-valued expressions.
(build_min_non_dep): Preserve reference refs.
(build_min_non_dep_call_vec): Likewise

From-SVN: r174499
gcc/cp/ChangeLog
gcc/cp/tree.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/rv-template1.C [new file with mode: 0644]