aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/template/debug1.C
blob: a2c1577029b49330e50af5b0844170331dd8783f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// PR c++/40274
// { dg-options "-g" }

template <class T> struct valuelist_types
{
 struct null { };
 template <T V, class next=null> struct list { };
};

template <unsigned D> void foo()
{
 typename valuelist_types<unsigned>::template list<D> v;
}

void bar()
{
 valuelist_types<unsigned>::list<2> v;
}