Project Home
Project Home
Source Code
Source Code
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
BroadcastCommunity.qnx.com will be offline from May 31 6:00pm until June 2 12:00AM for upcoming system upgrades. For more information please go to https://community.qnx.com/sf/discussion/do/listPosts/projects.bazaar/discussion.bazaar.topc28418
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.
}