C++ PATCH for EH-only cleanups, part 1 (for c++/5636)

Richard Henderson rth@redhat.com
Thu Apr 4 00:00:00 GMT 2002


On Thu, Apr 04, 2002 at 12:52:15AM +0100, Jason Merrill wrote:
> My named return value code was a bit over-enthusiastic about nullifying
> cleanups for a chosen local variable; if the function exits with an
> exception, we can't expect the caller to handle destroying the variable.

Why not?  How is this different from

  {
    string tmp;
    foo (&tmp);
  }

Or have I misinterpreted what you're saying?


r~



More information about the Gcc-patches mailing list