This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
verbose terminate handler
- From: "Richter, Jörg" <Joerg dot Richter at pdv-FS dot de>
- To: <libstdc++ at gcc dot gnu dot org>
- Date: Thu, 27 May 2004 18:21:07 +0200
- Subject: verbose terminate handler
Take a look at this program.
(Compiled with GCC-3.3.3)
---
#include <exception>
int main()
{
std::set_terminate( __gnu_cxx::__verbose_terminate_handler );
try
{
throw 1;
}
catch( ... )
{
std::terminate();
}
}
---
Outputs:
terminate called after throwing a `int'
I wouldn't expect this output. Actually the exception is catched before the program terminates.
Is this the intented behavior?
Joerg