aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/template/typename7.C
blob: d9c8f2609aab42cd64920ce1649fc47d9c6500c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// PR c++/17501

template<int> struct A;

template<> struct A<0>
{
    struct B
    {
        struct C
        {
	  typedef int D;
        };
    };
};

template<int I> struct E
{
  typename A<I>::B::C::D i;
};