1// PR c++/34485
2
3struct A
4{
5  template<T::X> struct X; // { dg-error "'T' has not been declared" "T" }
6  // { dg-error "declaration of 'template<int X> struct A::X'" "A::X" { target *-*-* } 5 }
7  // { dg-error "shadows template parm 'int X'" "shadow" { target *-*-* } 5 }
8};
9