re PR c++/49834 ([C++0x] type deduction in for-each loop in template function)
authorJason Merrill <jason@redhat.com>
Tue, 2 Aug 2011 18:08:58 +0000 (14:08 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 2 Aug 2011 18:08:58 +0000 (14:08 -0400)
commit2b756fa2977b0620d78446b7a97e2c8d7953543c
tree877c7816cb34d419062402adb5b5edd7c41f80f8
parent979d459888df360b584c17ca72d7a9b76fe50f52
re PR c++/49834 ([C++0x] type deduction in for-each loop in template function)

PR c++/49834
* parser.c (build_range_temp): Split out from...
(cp_convert_range_for): ...here.
(do_range_for_auto_deduction): New.
(cp_parser_range_for): Use it.

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