[Bug c++/49983] New: Template types fail in range-based for.
jarrydb at cse dot unsw.edu.au
gcc-bugzilla@gcc.gnu.org
Fri Aug 5 07:29:00 GMT 2011
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: unassigned@gcc.gnu.org
ReportedBy: jarrydb@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)
{
}
}
};
More information about the Gcc-bugs
mailing list