]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/cp/init.c
cp-tree.h (begin_for_scope): New prototype.
authorRodrigo Rivas Costa <rodrigorivascosta@gmail.com>
Wed, 12 Jan 2011 23:52:56 +0000 (23:52 +0000)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 12 Jan 2011 23:52:56 +0000 (18:52 -0500)
commit3f43ac31cc7db4a07a699dafc07ee012d333ce18
tree998d4ba3e58c9a683f96187fd1478eaad3bcbd80
parentc7aca2ff21800e3101a0c177151d70fda008484c
cp-tree.h (begin_for_scope): New prototype.

* cp-tree.h (begin_for_scope): New prototype.
(begin_for_stmt): Update prototype.
(begin_range_for_stmt): Update prototype.
* init.c (build_vec_init): Update call to begin_for_stmt.
* parser.c (cp_parser_for): New.
(cp_parser_c_for): Add three new parameters.
(cp_parser_range_for): Likewise. Most parsing code removed.
(cp_parser_iteration_statement): Call cp_parser_for instead of
cp_parser_c_for and cp_parser_range_for.
(cp_parser_for_init_statement): Add new parameter and return type.
(cp_parser_block_declaration): Update call to
cp_parser_simple_declaration.
(cp_parser_simple_declaration): Add new parameter.
Update call to cp_parser_init_declarator.
(cp_parser_init_declarator): Add new parameter.
* pt.c (tsubst_expr): Update call to begin_for_stmt.
* semantics.c (begin_for_scope): New.
(begin_for_stmt): Add two new parameters.
(begin_range_for_stmt): Likewise.

From-SVN: r168731
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/init.c
gcc/cp/parser.c
gcc/cp/pt.c
gcc/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/range-for4.C
gcc/testsuite/g++.dg/cpp0x/range-for8.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/range-for9.C [new file with mode: 0644]