FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / memtemp35.C
blob7603d947b88c3ed053dbd1b7530c6b54805a1d96
1 // Build don't link:
2 // GROUPS passed templates membertemplates
3 template <class T>
4 struct S
6   S(const S& s) {}
8   template <class U>
9   S(S<U>& s)
10   {
11     S<U> s2(s);
12   }
16 extern S<int>& si;
18 void foo()
20   S<char*> sc(si);