[Bug c++/49983] [C++0x] Template types fail in range-based for.
jason at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Aug 5 19:12:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49983
--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> 2011-08-05 19:12:21 UTC ---
Author: jason
Date: Fri Aug 5 19:12:16 2011
New Revision: 177478
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=177478
Log:
PR c++/49983
* parser.c (cp_parser_range_for): Only do auto deduction in
template if the range is non-dependent.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/range-for21.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/parser.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list