summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/memclass3.C
blob: d2f0449fa8f328f7585cd32e84b05159349d5ffd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// { dg-do run  }
template <class T> struct A {
  template <class U> struct B {
    template <class V> struct C {
      template <class W> struct D {
	template <class X> struct E {
	  template <class Y> struct F {
	    template <class Z> void f (Z) { }
	    void g () { }
	  };
	};
      };
    };
  };
};

int main ()
{
  A<int>::B<int>::C<int>::D<int>::E<int>::F<int> b;
  b.f (42);
  b.g ();
}