This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: exception handling on Linux RedHat 6 not caugth
- To: ltr at ever dot fr
- Subject: Re: exception handling on Linux RedHat 6 not caugth
- From: "Martin v. Loewis" <martin at loewis dot home dot cs dot tu-berlin dot de>
- Date: Sat, 5 Feb 2000 01:45:23 +0100
- CC: gcc-bugs at gcc dot gnu dot org
- References: <389AF1DD.9DCCE549@ever.fr>
> How do I initialize exception handlinhg?
> and how do I make exception handling to work in this situation?
>
> It is a bug ?
Thanks for your bug report. Yes, this is a bug, but not in g++ - it is
a bug in your code. The 'exception' you get is not a C++ exception,
but a segmentation violation generated by the operating system. This
has nothing to do with exception handling.
Exception handling is activated in g++ by default, -frtti does not
change anything here; you don't need to activate anything further.
If you really want to gracefully handle code as you do, please have a
look at signal(2).
Regards,
Martin