[cfe-commits] r127596 - in /cfe/trunk: lib/Sema/SemaDecl.cpp lib/Sema/SemaExprCXX.cpp lib/Sema/SemaType.cpp test/CXX/except/except.spec/p15.cpp

Sebastian Redl sebastian.redl at getdesigned.at
Mon Mar 14 12:22:17 PDT 2011

On 14.03.2011, at 19:45, Douglas Gregor wrote:

> On Mar 14, 2011, at 11:08 AM, Sebastian Redl wrote:
>> Author: cornedbee
>> Date: Mon Mar 14 13:08:30 2011
>> New Revision: 127596
>> URL: http://llvm.org/viewvc/llvm-project?rev=127596&view=rev
>> Log:
>> Make deallocation functions implicitly noexcept in C++0x.
> This is moderately terrifying, since throwing destructors (which were permitted in C++98/03) will now terminate(). We might want to put this under a flag, and even consider diagnosing the common cases (e.g., warn about a throw expression that occurs in a destructor).

It's not that bad. Unlike the proposal, the actual standard draft only makes deallocation functions (operator delete and delete[]) noexcept, not destructors.


More information about the cfe-commits mailing list