1// PR c++/23896
2
3template <int> struct X {};
4
5template <typename T> struct length {
6  static const int value = 2;
7};
8
9template <typename T> void foo () {
10  sizeof(X<length<T>::value>);
11}
12
13template void foo<int>();
14