FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / defarg4.C
blob9d5df8cf2a35b4eb64659e2a9128ffe1cb85c1f8
1 // Build don't link:
3 template <class T>
4 struct S1
6   void foo(T = t());
8   static T t();
9 };
12 template <class T>
13 struct S2
15   void bar();
19 template <class T>
20 void S2<T>::bar ()
22   S1<T> st;
23   st.foo();
27 int main()
29   S2<int> s2i;
30   s2i.bar();