1 // PR c++/24782 2 3 class Foo { public: typedef int type1; }; 4 class Bar { private: typedef Foo type2; }; // { dg-message "private" } g(Bar::type2::type1)5 void g(Bar::type2::type1) {} // { dg-error "context" } 6