prog.cpp: In function ‘int main()’:
prog.cpp:9:6: error: expected ‘;’ before ‘Foo2’
Foo Foo2; // will fail, thinks "Foo" is the object, not the type
^
prog.cpp:9:10: warning: statement has no effect [-Wunused-value]
Foo Foo2; // will fail, thinks "Foo" is the object, not the type
^