This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: verbose terminate handler
- From: Benjamin Kosnik <bkoz at redhat dot com>
- To: libstdc++ at gcc dot gnu dot org
- Date: Sun, 30 May 2004 09:50:19 -0500
- Subject: Re: verbose terminate handler
- Organization: Red Hat / Chicago
- References: <xCjlfKPYbUwkNNzYRbyMbCRpJSISpxRaGrJaCcIYhxB@akmail>
> A little bit confusing if you don't know that this 'terminate called ...'-thing doesn't alway
> indicate an uncaught exception.
As Jason indicated for your original example, verbose terminate is
behaving as expected: it prints active exception information.
Since you'd thrown an exception, but then caught it in the catch block,
and called terminate in that same block, the exception is still
considered active. Thus, the message.
Perhaps we should tweak the docs to clarify this situation. What do you think?
-benjamin