This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Exceptions in constructor?
ernst molitor writes:
> destructor will be called only for objects that are "completely
> constructed" (p. 367)
that's right, but this discussion has nothing to do with calling the
destructor. The point is whether or not operator delete should be
called to free the memory allocated by operator new, if the
constructor called by the new expression throws an exception. The
Dec'96 C++ CD says it should.
--
Alexandre Oliva
mailto:oliva@dcc.unicamp.br mailto:aoliva@acm.org
http://www.dcc.unicamp.br/~oliva
Universidade Estadual de Campinas, SP, Brasil