blob: 21e8ffbc20ecd715d41554b9c7e9d6e4f2d0a0c1 [file] [log] [blame]
// PR c++/40370
// { dg-do compile }
struct A
{
static int i;
};
template <int> struct B
{
int x[A::i]; // { dg-error "not an integral constant-expression" }
};