re PR c++/56701 ([C++11] The *this* pointer fails to bind to rvalue reference to...
authorJason Merrill <jason@redhat.com>
Thu, 28 Mar 2013 18:20:51 +0000 (14:20 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 28 Mar 2013 18:20:51 +0000 (14:20 -0400)
commit374b2837482811e9d5a2ec4b2db0dabd67e6d420
treeb2c999ccf8f435806dfed3d500f9e9e5b866799b
parentfad882c6d9f520191ea301a023aa86e348049973
re PR c++/56701 ([C++11] The *this* pointer fails to bind to rvalue reference to pointer type)

PR c++/56701
* semantics.c (finish_this_expr): 'this' is an rvalue.
* typeck.c (cp_build_indirect_ref): Handle NOP_EXPR of 'this'.

From-SVN: r197212
gcc/cp/ChangeLog
gcc/cp/semantics.c
gcc/cp/typeck.c
gcc/testsuite/g++.dg/cpp0x/rv-this.C [new file with mode: 0644]