This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/49834] [C++0x] type deduction in for-each loop in template function
- From: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 2 Aug 2011 18:09:07 +0000
- Subject: [Bug c++/49834] [C++0x] type deduction in for-each loop in template function
- Auto-submitted: auto-generated
- References: <bug-49834-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49834
--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> 2011-08-02 18:09:02 UTC ---
Author: jason
Date: Tue Aug 2 18:08:58 2011
New Revision: 177199
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=177199
Log:
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.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/range-for20.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/parser.c
trunk/gcc/testsuite/ChangeLog