1 // { dg-options "-Wall" } 2 // { dg-do compile { target c++11 } } 3 4 template <int> struct X {}; 5 template <typename> struct Y { static int const c = 0; }; main()6 int main() { return Y<X<1>>::c; } 7