[cfe-commits] r81939 - in /cfe/trunk: lib/Sema/Sema.cpp lib/Sema/Sema.h lib/Sema/SemaDecl.cpp lib/Sema/SemaDeclCXX.cpp lib/Sema/SemaExprCXX.cpp test/CXX/basic/basic.stc/basic.stc.dynamic/p2-nodef.cpp test/CXX/basic/basic.stc/basic.stc.dynamic/p2.cpp
Sebastian Redl
sebastian.redl at getdesigned.at
Tue Sep 15 23:55:34 PDT 2009
Douglas Gregor wrote:
> Author: dgregor
> Date: Tue Sep 15 17:30:29 2009
> New Revision: 81939
>
> URL: http://llvm.org/viewvc/llvm-project?rev=81939&view=rev
> Log:
> When implicitly declaring operators new, new[], delete, and delete[],
> give them the appropriate exception specifications. This,
> unfortunately, requires us to maintain and/or implicitly generate
> handles to namespace "std" and the class "std::bad_alloc". However,
> every other approach I've come up with was more hackish, and this
> standard requirement itself is quite the hack.
>
Thank you.
I'll have to audit my other exception spec code to ensure that it can
handle a spec where an undefined class appears. I don't want the code to
crash if you do something like this:
void* operator new(size_t n) throw(something_else);
Sebastian
More information about the cfe-commits
mailing list