summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/memtemp98.C
blob: e8e97707097fcee78249a42d4e2349b4d9cb59e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// { dg-do assemble  }
//Purpose:
//  Test nested template as template template arg.
//Result:
//  Before the patch, got:
//   `C' is not a template

template <template <typename S> class T>
struct A
{
  T<int> m_t;
};

struct B
{
  template <typename V>
  struct C
  {
    V m_v;
  };
};

A<B::C> z;