http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49983

           Summary: Template types fail in range-based for.
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: jarr...@cse.unsw.edu.au
              Host: x86_64-unknown-linux-gnu
            Target: x86_64-unknown-linux-gnu
             Build: x86_64-unknown-linux-gnu


The following code fails to compile with gcc revision 177356.

g++ -std=gnu++0x template-range.cpp

class A
{
  public:

  template <typename List>
  A(const List& l)
  {
    for (auto v : l)
    {
    }
  }
};

Reply via email to