aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/defarg4.C
blob: 9d5df8cf2a35b4eb64659e2a9128ffe1cb85c1f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// Build don't link:

template <class T>
struct S1
{
  void foo(T = t());

  static T t();
};


template <class T>
struct S2
{
  void bar();
};


template <class T>
void S2<T>::bar ()
{
  S1<T> st;
  st.foo();
}


int main()
{
  S2<int> s2i;
  s2i.bar();
}