cp-tree.h (enum cp_tree_index): Add CPTI_AUTO_IDENTIFIER & CPTI_DECLTYPE_AUTO_IDENTIFIER.
authorNathan Sidwell <nathan@acm.org>
Wed, 7 Dec 2016 12:52:39 +0000 (12:52 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Wed, 7 Dec 2016 12:52:39 +0000 (12:52 +0000)
commitb3235e974fee0ce362afafed93a8e5916ae790e1
tree3b8fde14f0440e81500745808b5c81e2265e8ced
parentbbe9a71dff7c5684dbdca1c1befc93099b411636
cp-tree.h (enum cp_tree_index): Add CPTI_AUTO_IDENTIFIER & CPTI_DECLTYPE_AUTO_IDENTIFIER.

* cp-tree.h (enum cp_tree_index): Add CPTI_AUTO_IDENTIFIER &
CPTI_DECLTYPE_AUTO_IDENTIFIER.
(auto_identifier, decltype_auto_identifier): New.
*decl.c (initialize_predefined_identifiers): Add 'auto' and
'decltype(auto)'.
(grokdeclarator): Use cached identifier.
* pt.c (make_decltype_auto, make_auto, make_constrained_auto,
is_auto): Likewise.

From-SVN: r243342
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/cp/pt.c