N3994 Ranged-based for-loops: The Next Generation
authorJason Merrill <jason@redhat.com>
Thu, 26 Jun 2014 18:15:36 +0000 (14:15 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 26 Jun 2014 18:15:36 +0000 (14:15 -0400)
commitdaa04b0ad91e1994e53bcad3930d2bf4ae8ef04d
tree990824d09a9ea0a4b8fc22d0d4fa5540abc9e645
parentda73100b48932e7e01669993031fd694ed1590b2
N3994 Ranged-based for-loops: The Next Generation

N3994 Ranged-based for-loops: The Next Generation
* parser.c (cp_lexer_nth_token_is): New.
(cp_parser_for_init_statement): Allow "for (id : init)".

From-SVN: r212043
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/g++.dg/cpp1z/range-for1.C [new file with mode: 0644]