1 namespace A
2 {
3   typedef int T;	// { dg-message "previous declaration" }
4 }
5 
6 class A::T x;		// { dg-error "using typedef-name|invalid type" }
7