[cxx-abi-dev] __cxa_vec_new2 and deallocation functions that throw exceptions
Dennis Handly
dhandly at cup.hp.com
Thu May 15 08:14:57 UTC 2003
>A function can exit either by use of "return" (including falling off the
>If a destructor catches the exception, it does not exit by throwing an
>exception. So, yes, the situation you describe is legal.
Mark Mitchell <mark at codesourcery.com>
Ok, so the only way to distinguish these exiting throws is to wrap the
call with: try { ... } catch(...) { std::terminate(); }
More information about the cxx-abi-dev
mailing list