1 // PR c++/3004
2 // Origin: Travis J.I. Corcoran <tjic@permabit.com>
3 // { dg-do compile }
4 
5 struct A { typedef A* Ptr; };	// { dg-message "previous declaration" }
6 
7 struct A::Ptr;			// { dg-error "typedef|not declare anything" }
8