// PR c++/34485 struct A { template struct X; // { dg-error "'T' has not been declared" "T" } // { dg-error "declaration of 'template struct A::X'" "A::X" { target *-*-* } 5 } // { dg-error "shadows template parm 'int X'" "shadow" { target *-*-* } 5 } };