2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / unify2.C
blob5a9b2d26ee6b22006f2cddfb2c0955c6a3e2bbb2
1 // { dg-do assemble  }
3 template <class T>
4 struct S
6   typedef T S_Type;
7 };
10 template <class T>
11 void foo(typename S<T>::S_Type)
16 template <class T>
17 void foo(T)
22 struct S2 {};
24 void bar()
26   foo(S2()); // We can't unify with the first foo, so we get the second.