fork(2) download
  1. struct A
  2. {
  3. int x;
  4.  
  5. A(): A(10) {}
  6.  
  7. private:
  8. A(int val): x(val) {}
  9. };
  10.  
  11. int main(int argc, char* argv[])
  12. {
  13. A a;
  14.  
  15. return 0;
  16. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In constructor 'A::A()':
prog.cpp:5: error: type 'A' is not a direct base of 'A'
stdout
Standard output is empty