blob: f1e254c40a14c1387a4e38e3394f4e1224e3c7c0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
// { dg-options "-std=c++0x" }
class X {
template<typename T = int> friend void f(X) { }
template<typename T> friend void g(X); // { dg-error "previously declared here" }
template<typename T = int> friend void h(X); // { dg-error "function template friend" }
};
template<typename T = int> void g(X) // { dg-error "default template argument" }
{
}
|