summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/regress/template-const1.C
blob: 32db1f831b4bdb1871d3b81f7a162c5b1d111186 (plain)
1
2
3
4
5
6
7
8
9
// PR c++/47897
// { dg-options -std=c++0x }

template < typename T, T N >
struct S
{
    static const T value = N;
    typedef S< T, value + 1 > next;
};