2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / call2.C
blob94e4928b46a2d2c8cd86627854ad34eeb6216ad9
1 // { dg-do assemble  }
3 struct IsCompressed { };
4 struct Field {
5 };
7 template<class C>
8 inline bool
9 for_each(const Field& p, IsCompressed, C)
11   return p.IsCompressed(); // { dg-error "" } calling type like a method
14 template bool for_each<int>(const Field& p, IsCompressed, int);