OSDN Git Service

PR c++/20669
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.pt / friend41.C
1 // { dg-do assemble  }
2 // Origin: Mark Mitchell <mark@codesourcery.com>
3
4 template <class T>
5 class S {
6 public:
7   template <class U>
8   class C {
9   public:
10     void f() { S::i = 3; }
11   };
12
13   template <class U>
14   friend class C;
15
16 private:
17   static int i;
18 };
19
20
21 template void S<int>::C<double>::f();