This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: verbose terminate handler
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: "Richter, Jörg" <Joerg dot Richter at pdv-FS dot de>
- Cc: <libstdc++ at gcc dot gnu dot org>
- Date: 27 May 2004 19:03:13 +0200
- Subject: Re: verbose terminate handler
- Organization: Integrable Solutions
- References: <BE04DD7F49713C4C94B1A89A81CEFE1C055550@exch03.pdv-fs.de>
"Richter, Jörg" <Joerg.Richter@pdv-FS.de> writes:
| 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'
^^^^^^^^^
This really should be "std::terminate".
| I wouldn't expect this output. Actually the exception is catched before the program terminates.
| Is this the intented behavior?
No. It is not a feature.
-- Gaby