summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/call2.C
blob: 94e4928b46a2d2c8cd86627854ad34eeb6216ad9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// { dg-do assemble  }

struct IsCompressed { };
struct Field {
};

template<class C>
inline bool
for_each(const Field& p, IsCompressed, C)
{
  return p.IsCompressed(); // { dg-error "" } calling type like a method
}

template bool for_each<int>(const Field& p, IsCompressed, int);