|
|
nothrow exceptions with QNX gcc 4.6.3
|
|
08/13/2012 10:59 AM
post94786
|
nothrow exceptions with QNX gcc 4.6.3
I have tried to catch via a terminate handler exceptions thrown within methods that define both noexcept and throw ()
with -fnothrow-opt. It is my understanding that exceptions thrown with these specification should call terminate. It
appears that unhandled exceptions call terminate, but exceptions thrown from methods declared not to, do not. Am I
doing something wrong, or is it a bug with this compiler implementation?
...
bool myfunc (void) noexcept
{
std::exception e;
throw e; // Does not seem to call terminate () as described.
}
|
|
|
|
|