This is the mail archive of the
mailing list for the GCC project.
Re: implement __attribute__((cleanup(function)))
On Mon, May 05, 2003 at 10:28:29PM -0300, Alexandre Oliva wrote:
> In C++, for example, the result of the statement expression outlives
> the scope, and the destruction of temporaries created in an expression
> occurs at the end of the full enclosing statement.
I was not going to respond at all, in keeping with my previous
claim to be uninterested in arguing about this topic. But this
was too much.
Don't even PRETEND that C++ object lifetimes vs GCC statement
expressions is even REMOTELY defined. Anything that happens
at the moment is purely by accident, and any claim to the
contrary is a bald-faced lie.