cp-tree.h (struct cp_evaluated): New.
authorJason Merrill <jason@redhat.com>
Tue, 13 Nov 2018 04:33:57 +0000 (23:33 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 13 Nov 2018 04:33:57 +0000 (23:33 -0500)
commit16e723e600a62428b8ed6ab414931ec7a78aceee
tree7e0cf797774e91ae6a17d137439115ace9acb318
parente4bd6d5e1f4496e06ac2d08effa977b191b91a54
cp-tree.h (struct cp_evaluated): New.

* cp-tree.h (struct cp_evaluated): New.

This patch simplifies the saving/clearing/restoring of
cp_unevaluated_operand and c_inhibit_evaluation_warnings in the presence of
mid-block returns.

* init.c (get_nsdmi): Use it.
* parser.c (cp_parser_enclosed_template_argument_list): Use it.
* pt.c (coerce_template_parms, tsubst_aggr_type): Use it.

From-SVN: r266051
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/init.c
gcc/cp/parser.c
gcc/cp/pt.c