prog.cpp:5:21: error: invalid use of incomplete type ‘class X’
void Foo( X x = X() );
^
prog.cpp:1:7: note: forward declaration of ‘class X’
class X;
^
prog.cpp: In function ‘int main()’:
prog.cpp:23:8: error: call to ‘void F::Foo(X)’ uses the default argument for parameter 1, which is not yet defined
f.Foo();
^