Merge from mainline
[official-gcc.git] / gcc / testsuite / g++.dg / parse / access9.C
blob2c29016b0479df28786aff3ca5d76990a64bb095
1 // PR c++/24782
3 class Foo { public:  typedef int type1; };
4 class Bar { private: typedef Foo type2; }; // { dg-error "private" } 
5 void g(Bar::type2::type1) {} // { dg-error "context" }