OSDN Git Service

cp:
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.pt / friend33.C
1 // Build don't run:
2 // Special g++ Options: -g
3
4 template <class P1>
5 struct S1
6 {
7   struct SS1
8   {
9   };
10   friend void Foo (const SS1& ss1)
11     {
12     }
13 };
14
15 template <class P1>
16 void Foo(const S1<P1>& s1)
17 {
18   typedef typename S1<P1>::SS1 TYPE;
19   TYPE t;
20   Foo(t);
21 }
22
23 int main ()
24 {
25   S1<double> obj;
26   Foo(obj);
27 }
28