This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r168731 - in /trunk/gcc: cp/ChangeLog cp/cp-tre...
- From: jason at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Wed, 12 Jan 2011 23:52:57 -0000
- Subject: r168731 - in /trunk/gcc: cp/ChangeLog cp/cp-tre...
Author: jason
Date: Wed Jan 12 23:52:56 2011
New Revision: 168731
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=168731
Log:
* 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.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/range-for8.C
trunk/gcc/testsuite/g++.dg/cpp0x/range-for9.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/cp-tree.h
trunk/gcc/cp/init.c
trunk/gcc/cp/parser.c
trunk/gcc/cp/pt.c
trunk/gcc/cp/semantics.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/g++.dg/cpp0x/range-for4.C