// { dg-do assemble } template struct S { template friend X f(X, Y, Z); }; template class S; template char f(char, long, short); // { dg-error "f" } template char* f(char*, long*, short*); // { dg-error "f" } template X f(X x, Y, Z) { return x; }