#include <memory> struct Foo { std::auto_ptr<int> a; }; int main() { throw Foo(); }
Standard input is empty
prog.cpp: In function 'int main()': prog.cpp:10:15: error: no matching function for call to 'Foo::Foo(Foo)' prog.cpp:4:1: note: candidates are: Foo::Foo() prog.cpp:4:1: note: Foo::Foo(Foo&) prog.cpp:10:15: error: in thrown expression
Standard output is empty