// PR c++/26266 template struct A { static const int i = 1; }; template struct B { static const int j = A::i; static const int k = int(j); int x[k]; }; B b;