re PR c++/49983 ([C++0x] Template types fail in range-based for.)
authorJason Merrill <jason@redhat.com>
Fri, 5 Aug 2011 19:12:16 +0000 (15:12 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 5 Aug 2011 19:12:16 +0000 (15:12 -0400)
commitfcbc2bedbfb3a584bd98a7792d7d088db8e8c6fd
treef4ee67a30913197f88bcf1082f3b80d2408d9781
parenta034826198b7711835f21307c6976926442f5b97
re PR c++/49983 ([C++0x] Template types fail in range-based for.)

PR c++/49983
* parser.c (cp_parser_range_for): Only do auto deduction in
template if the range is non-dependent.

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