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