FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / unify2.C
blob89b043d79013db3be985abed749bb9a1ae3788f3
1 // Build don't link:
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.