fork download
  1. struct B{};
  2.  
  3. template <typename T>
  4. struct A : private T{};
  5.  
  6. struct C : public A<B>{
  7. C(A<const B>); // ERROR HERE
  8. };
  9.  
  10. int main(){
  11. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:1:9: error: 'struct B B::B' is inaccessible
prog.cpp:7:7: error: within this context
stdout
Standard output is empty