1 // PR c++/47897
2 
3 template < typename T, T N >
4 struct S
5 {
6     static const T value = N;
7     typedef S< T, value + 1 > next;
8 };
9