// PR c++/34397 template struct A { typedef A B; }; A a; // { dg-error "subscripted|template|declaration" }