implement __attribute__((cleanup(function)))

Richard Henderson rth@redhat.com
Tue May 6 04:09:00 GMT 2003


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.


r~



More information about the Gcc-patches mailing list