fork download
  1. class A {
  2. protected:
  3. struct B { };
  4. };
  5. struct D: A::B, A { };
  6.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
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 { };
              ^
stdout
Standard output is empty