class A { protected: struct B { }; }; struct D: A::B, A { };
Standard input is empty
prog.cpp:3:12: error: 'struct A::B' is protected
struct B { };
^
prog.cpp:5:14: error: within this context
struct D: A::B, A { };
^
Standard output is empty