summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/debug/pr56819.C
blob: 62926be2fb0c2e76dd0005a0e8a917dcb94d4f7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// PR debug/56819
// { dg-do compile }
// { dg-options "-fcompare-debug" }

template <typename>
struct A
{
  template <typename>
  struct B;
};

template <typename>
struct C
{
  typedef int I;
};

template <typename T>
class D
{
  typedef A <void> E;
  typedef typename T::template B <E> F;
  typedef typename C <F>::I I;
  A <I> foo () { return A<I> (); }
};

template class D <A <void> >;