[LLVMdev] RFC: Exception Handling Proposal II

Renato Golin rengolin at systemcall.org
Thu Nov 25 05:40:57 PST 2010


On 25 November 2010 13:31, Duncan Sands <baldrick at free.fr> wrote:
> In short, all destructors are run, and if any
> throw
> exceptions then that fact is noted somewhere (and the exception is not
> allowed
> to propagate) and once all destructors have had a chance to run then one
> instance of Program_Error is thrown at the point of scope exit.

I see, like keeping the exceptions in a queue as they happen and deal
with each one in order, until the queue is empty.

It's harder to print stack-traces to the user, but this discussion is
becoming off-topic. ;)

Anyway, thanks for the explanation!

cheers,
--renato



More information about the llvm-dev mailing list