Fix decltype-call1.C with -std=c++1z.
authorJason Merrill <jason@redhat.com>
Mon, 7 Dec 2015 04:35:08 +0000 (23:35 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 7 Dec 2015 04:35:08 +0000 (23:35 -0500)
commitca8e4b87ad6da53a0e8c17227f7ef82e38df66fb
treea2db1f22fa258b5aed20835a904e972177465a6b
parent5ea106d85b5e2e7278472070b45d22f892f1e1d3
Fix decltype-call1.C with -std=c++1z.

* parser.h (struct cp_token): Tell GTY that CPP_DECLTYPE uses
tree_check_value.
* parser.c (cp_parser_decltype): Use tree_check_value.
(saved_checks_value): New.
(cp_parser_nested_name_specifier_opt): Use it.
(cp_parser_template_id): Use it.
(cp_parser_simple_type_specifier): Use it.
(cp_parser_pre_parsed_nested_name_specifier): Use it.

From-SVN: r231353
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/cp/parser.h