This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch-rfc] N2179: Exception Propagation in C++
Paolo Carlini wrote:
like in the attached which I quickly hacked, untested (if you can, please double check the reference counting for off-by-one errors, thanks in advance).
I'm sorry to be so late, but I only just now noticed that you changed
eh_throw.cc (__cxa_throw) to initialize the reference count to 0 instead
of 1. This is incorrect. The exception mechanism is considered holding a
reference to the exception object (the one removed in
__gxx_exception_cleanup), and the initialization of the count is to 1 to
reflect that.
Sebastian