template <const int N> struct A { };
template <class T> struct B {
static const int c;
- typedef A<B<T>::c> C; // { dg-error "non-constant" }
+ typedef A<B<T>::c> C; // { dg-error "constant expression" }
};
template <class T> const int B<T>::c = sizeof (T);