aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/debug/pr56819.C
blob: bc61cb760b8bef99b3b26a7433ec1dfde239fb0c (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
28
// PR debug/56819
// { dg-do compile }
// { dg-options "-fcompare-debug" }
// { dg-xfail-if "" { powerpc-ibm-aix* } { "*" } { "" } }

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> >;