From: | Allan Odgaard |
Date: | 15 Aug 2001 at 04:17:53 |
Subject: | Re: [amiga-c] Re: GCC and exceptions... |
On Wed, 15 Aug 2001, Jan-Erik Karlsson wrote:
> AO > If I change 'throw 42;' to just say 'throw;' then it only write the
> AO > above message once (but no 'catch in constructor'). If I declare the
> AO > constructor externally (A::A () { ... }) then it works as it should,
> AO > and the same is the case if I move the declaration of my class inside
> AO > the scope of main().
> this is of no relevance to the compiler
I don't understand this remark. Could you please elaborate?
> AO > As you can imagine such fuzzy behaviour makes exceptions completely
> AO > unreliable and thus useless for my project :-(
> I tested it and it does work as it should you need to lower the optimization
> level to 0
> (you can still use the 'checkmark' optimizations), this is not a stormc
> fault.
ehm... I don't think the C++ standard say that exceptions should work
different on different optimization levels... ;-) And setting level to
zero is no optimizations at all. This is not very nice...
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/