This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: exception handling on Linux RedHat 6 not caugth


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]