summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/memclass2.C
blob: bfad59687103f6f929968a5d734d44bd656dac00 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// { dg-do run  }
template <class T> struct A {
  template <class U> struct B {
    template <class V> void f (V) { }
    void g () { }
  };
  template <class W> struct B<W*> {
    void h () { }
  };
};

int main ()
{
  A<int>::B<char> b;
  b.f (42);
  b.g ();
  A<double>::B<void*> b2;
  b2.h ();
}