Hello,

we have a problem with the Cygnus g++ compiler, version 2.9-gnupro-98r2:
When we use exceptions in our source code and compile with option
-fno-rtti (in detail: "g++ -fno-rtti tescht.C", our program crashes as soon
as an exception has been thrown and handled in the corresponding "catch"
block. It makes no difference which kind of object is thrown as exception,
neither in which "catch" block it is handled.

Unfortunately, we are
a) forced to use -fno-rtti and
b) are not able to switch to a more recent version of the compiler.
That is because our system is a shared object library that is a plug-in
for a piece of standard software called RiskWatch from Algorithmics Inc.
If we don't use -fno-rtti, the system complains about missing symbols of
the base classes provided within RiskWatch (which is dynamically linking
our .so-file at run time). If we switch to a compiler that has no problems
with exceptions, RiskWatch is no longer able to dynamically link our stuff.
So we are stuck to g++ 2.9-gnupro-98r2.

Do you have any ideas how we can solve this problem? Are there compiler
switches we haven't recognised yet? Are there patches for this problem?

As attachment, you find a simple test program with the behaviour explained
above and a file "system.txt" which describes our working platform (generated
with uname -X).

Thanks for your help in advance!

Kind regards,
Ulrich Keitel

Commerzbank AG