]> gcc.gnu.org Git - gcc.git/commit - gcc/cp/semantics.c
cp-tree.h (AUTO_IS_DECLTYPE): New.
authorJason Merrill <jason@redhat.com>
Fri, 29 Mar 2013 19:51:36 +0000 (15:51 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 29 Mar 2013 19:51:36 +0000 (15:51 -0400)
commit10c6dc8e3932d33c8e47e6706885d2412b29c069
treefa1e112b1b8703b30586ff6e497de4fc62417926
parent15914ac8b16b3e88dc13b08f143f90ac5baad126
cp-tree.h (AUTO_IS_DECLTYPE): New.

N3582
* cp-tree.h (AUTO_IS_DECLTYPE): New.
* parser.c (cp_parser_decltype): Handle decltype(auto).
(cp_parser_type_id_1): Allow auto without a late-specified
return in C++1y.
(cp_parser_primary_expression): Use the return value of
finish_parenthesized_expr.
(cp_parser_transaction_expression): Likewise.
* semantics.c (force_paren_expr): New.
(finish_parenthesized_expr): Use it.
* call.c (build_conditional_expr_1): Likewise.
* pt.c (do_auto_deduction): Handle decltype(auto).
(tsubst_copy): Handle PAREN_EXPR.
(tsubst_copy_and_build): Likewise.
* error.c (dump_expr): Handle PAREN_EXPR.
* cxx-pretty-print.c (pp_cxx_expression): Likewise.
* mangle.c (write_expression): Ignore PAREN_EXPR.

* parser.c (cp_parser_decltype_expr): Split out...
(cp_parser_decltype): ...from here.

From-SVN: r197248
13 files changed:
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/cp-tree.h
gcc/cp/cxx-pretty-print.c
gcc/cp/error.c
gcc/cp/mangle.c
gcc/cp/parser.c
gcc/cp/pt.c
gcc/cp/semantics.c
gcc/testsuite/g++.dg/cpp1y/auto-fn15.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp1y/auto-fn16.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp1y/auto-fn17.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp1y/mangle1.C [new file with mode: 0644]
This page took 0.057055 seconds and 5 git commands to generate.