re PR c++/63437 ([C++14] Parenthesized "movable but not copyable" object doesn't...
authorJason Merrill <jason@redhat.com>
Thu, 9 Oct 2014 18:05:17 +0000 (14:05 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 9 Oct 2014 18:05:17 +0000 (14:05 -0400)
commit96e780c0873477bb2b9ab34306e4694dad6626aa
treeee1cf2b2501e26a4d1ab22ef58e0584d471a3fa7
parent94c4084cf009939db425be4f6552b7f29f8587b3
re PR c++/63437 ([C++14] Parenthesized "movable but not copyable" object doesn't compile in return statement)

PR c++/63437
* cp-tree.h (REF_PARENTHESIZED_P): Also allow INDIRECT_REF.
* semantics.c (force_paren_expr): And set it.
* typeck.c (check_return_expr): And handle it.

From-SVN: r216042
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/semantics.c
gcc/cp/typeck.c
gcc/testsuite/g++.dg/cpp1y/paren1.C [new file with mode: 0644]