This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/49983] [C++0x] Template types fail in range-based for.


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]