1// { dg-do compile }
2
3// Dependent arrays of invalid size generate appropriate error messages
4
5template<int I> struct A
6{
7  static const int zero = 0;
8  static const int minus_one = -1;
9};
10
11template<int N> struct B
12{
13  int x[A<N>::zero];       // { dg-error "zero" }
14  int y[A<N>::minus_one];  // { dg-error "negative" }
15};
16
17B<0> b;
18