blob: d5c3a928323dd4d215f68600bc0f0ab7902fb52c [file] [log] [blame]
// PR c++/34397
template<typename T, int = T()[0]> struct A // { dg-error "subscripted" }
{
typedef A<T> B;
};
A<int> a; // { dg-error "template argument 2 is invalid" }