Project Home
Project Home
Source Code
Source Code
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - nothrow exceptions with QNX gcc 4.6.3 : (1 Item)
   
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.
}