template void foo (int); template class Q { friend inline void foo (int); // { dg-error "10:.inline. is not allowed in declaration of friend" } };