fork(1) download
  1. struct X;
  2.  
  3. struct F
  4. {
  5. void Foo( X x= X() );
  6.  
  7. float f;
  8. };
  9.  
  10. int main(){}
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:5:20: error: invalid use of incomplete type ‘struct X’
   void Foo( X x= X() );
                    ^
prog.cpp:1:8: note: forward declaration of ‘struct X’
 struct X;
        ^
stdout
Standard output is empty