1 // { dg-do compile { target c++11 } }
4 template<typename T = int> friend void f(X) { }
5 template<typename T> friend void g(X); // { dg-message "previously declared here" }
6 template<typename T = int> friend void h(X); // { dg-error "function template friend" }
9 template<typename T = int> void g(X) // { dg-error "default template argument" }