aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/template/const4.C
blob: 6552ec6e9686154968c0fa27ea76f2ff67900201 (plain)
1
2
3
4
5
6
7
8
9
// PR c++/48657

template<unsigned> struct A { typedef int T; };

template<unsigned> void f()
{
  const unsigned D = 4;
  A<D>::T t;
}