FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / crash52.C
blob4d2de6198a3696f29ff9ca654cb329740881293a
1 // Build don't link:
2 // Origin: Mark Mitchell <mark@codesourcery.com>
4 template <class T>
5 struct S1
7   template <class U>
8   struct S2
9   { 
10     S2(U);
11   };
13   template <class U>
14   void f(U u)
15     {
16       S2<U> s2u(u);
17     }
20 void g()
22   S1<int> s1;
23   s1.f(3.0);