struct A { int x; A(): A(10) {} private: A(int val): x(val) {} }; int main(int argc, char* argv[]) { A a; return 0; }
Standard input is empty
prog.cpp: In constructor 'A::A()': prog.cpp:5: error: type 'A' is not a direct base of 'A'
Standard output is empty