// { dg-do compile } // Dependent arrays of invalid size generate appropriate error messages template struct A { static const int zero = 0; static const int minus_one = -1; }; template struct B { int x[A::zero]; // { dg-error "zero" } int y[A::minus_one]; // { dg-error "size .-1. of array is negative|narrowing conversion|not an integral constant-expression" } }; B<0> b;