fork download
  1. struct Foo
  2. {
  3. Foo(const&) {}
  4. Foo() {}
  5. };
  6.  
  7. int main()
  8. {
  9. Foo f1;
  10. Foo f2 = f1;
  11. }
  12.  
  13.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:3:13: error: ISO C++ forbids declaration of ‘parameter’ with no type [-fpermissive]
    Foo(const&) {}
             ^
stdout
Standard output is empty