Implement N3271
authorJason Merrill <jason@gcc.gnu.org>
Sat, 16 Apr 2011 00:28:17 +0000 (20:28 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Sat, 16 Apr 2011 00:28:17 +0000 (20:28 -0400)
commitdeb9642d054842041402b44d2062d8a5efa40ce0
treef935ef5d5afe9c68c523e956499fa96210611ab5
parent5a0f6eba53087e09a70dcb51c80654bb3bf01342
Implement N3271

Implement N3271
* parser.c (cp_convert_range_for): Split into
cp_parser_perform_range_for_lookup.
(cp_parser_perform_range_for_lookup): New.
(cp_parser_range_for_member_function): New.
(cp_parser_for_init_statement): Correct error message.
* semantics.c (finish_call_expr): Accept COMPONENT_REF.

From-SVN: r172531
14 files changed:
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/range-for11.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/range-for12.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/range-for13.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/range-for14.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/range-for15.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/range-for16.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/range-for17.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/range-for2.C
gcc/testsuite/g++.dg/cpp0x/range-for3.C
gcc/testsuite/g++.dg/cpp0x/range-for9.C