re PR c++/69736 ("error: too few arguments to function" in c++14 but not c++11)
authorPatrick Palka <ppalka@gcc.gnu.org>
Thu, 25 Feb 2016 01:14:27 +0000 (01:14 +0000)
committerPatrick Palka <ppalka@gcc.gnu.org>
Thu, 25 Feb 2016 01:14:27 +0000 (01:14 +0000)
commit1137001cd9b3751964b44ab80861cf7a91aa197b
treef621bb008d6f17792de60637f9e2e5e36d9e9ead
parenta8b233b7f204138b2629db2b818c807df4a1ef52
re PR c++/69736 ("error: too few arguments to function" in c++14 but not c++11)

Fix PR c++/69736

gcc/cp/ChangeLog:

PR c++/69736
* cp-tree.h (REF_PARENTHESIZED_P): Adjust documentation.
(maybe_undo_parenthesized_ref): Declare.
* semantics.c (maybe_undo_parenthesized_ref): Split out from
check_return_expr.
(finish_call_expr): Use it.
* typeck.c (check_return_expr): Use it.
* pt.c (tsubst_copy_and_build) [INDIRECT_REF]: Retain the
REF_PARENTHESIZED_P flag.

gcc/testsuite/ChangeLog:

PR c++/69736
* g++.dg/cpp1y/paren2.C: New test.

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