8 template <class T> class Foob
22 template<class T> friend int main(); // { dg-error "cannot declare .::main. to be a template" }
25 template<class T> class Food
27 template<class U> friend int main(); // { dg-error "cannot declare .::main. to be a template" }
30 template<class U> int main() {} // { dg-error "cannot declare .::main. to be a template" }