This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: exceptions in C++
- From: Nathan Sidwell <nathan at codesourcery dot com>
- To: Matthias Oltmanns <Mathias dot Oltmanns dot Oltmanns at sysde dot eads dot net>
- Cc: eljay at adobe dot com, gcc-help at gcc dot gnu dot org
- Date: Wed, 26 Mar 2003 10:20:30 +0000
- Subject: Re: exceptions in C++
- Organization: Codesourcery LLC
- References: <BAA5ED00.7DEE%eljay@adobe.com> <1048667298.1573.14.camel@karpov>
Matthias Oltmanns wrote:
Hi John,
many good ideas but i'm dreaming of a more general solution. The divide
by zero was an example for situations, where the runtime-environment
signals errors by "signals" instead by exceptions. I would like to see
a general solution, where i'm able to deal only with exceptions. Other
situations are segmentation faults, bus erros etc.
Is it possible to catch these errors and to continue in the program flow
without the need of termination?
I believe -fnon-call-exceptions might be the closest to what you're looking
for.
nathan
--
Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery LLC
The voices in my head said this was stupid too
nathan at codesourcery dot com : http://www.cs.bris.ac.uk/~nathan/ : nathan at acm dot org