[PATCH] D33333: Emit warning when throw exception in destruct or dealloc functions which has a (possible implicit) noexcept specifier
    Reid Kleckner via Phabricator via cfe-commits 
    cfe-commits at lists.llvm.org
       
    Thu May 18 13:31:09 PDT 2017
    
    
  
rnk added a comment.
I think we should consider generalizing this to throwing from any noexcept function. We could add a special case diagnostic to explain that destructors and delete operators are noexcept by default in C++11.
It's also probably a good idea to silence this warning if there are any try scopes around the exception being thrown.
https://reviews.llvm.org/D33333
    
    
More information about the cfe-commits
mailing list