FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / memclass9.C
blob824ee76f0c519df70433622ff8e55a73ac6ad9bf
1 // Build don't link:
3 template <class T>
4 struct S1
6   template <class U>
7   struct S2
8   { 
9     S2(U);
11     void g() 
12       {
13         S2<U> s2u (u);
14       }
16     U& u;
17   };
19   template <class U>
20   void f(U u)
21     {
22       S2<U> s2u(u);
23       s2u.g();
24     }
27 void g()
29   S1<int> s1;
30   s1.f(3.0);