OSDN Git Service

51b246948ed14763bc7c54892971b979c49500d6
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.pt / call2.C
1 // Build don't link:
2
3 struct IsCompressed { };
4 struct Field {
5 };
6
7 template<class C>
8 inline bool
9 for_each(const Field& p, IsCompressed, C)
10 {
11   return p.IsCompressed(); // ERROR - calling type like a method
12 }
13
14 template bool for_each<int>(const Field& p, IsCompressed, int); // ERROR - instantiated from here