// PR c++/34397 template struct A // { dg-error "subscripted" } { typedef A B; }; A a; // { dg-error "template argument 2 is invalid" }