summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/defarg4.C
blob: ddc24c9380cc713979912076c4f16747054273c2 (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
// { dg-do assemble  }

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();
}