aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/parse/access9.C
blob: 2c29016b0479df28786aff3ca5d76990a64bb095 (plain)
1
2
3
4
5
// PR c++/24782

class Foo { public:  typedef int type1; };
class Bar { private: typedef Foo type2; }; // { dg-error "private" } 
void g(Bar::type2::type1) {} // { dg-error "context" }