Amiga-C (115/223)

From:Jan-Erik Karlsson
Date:15 Aug 2001 at 05:11:02
Subject:[amiga-c] Re: GCC and exceptions...

Hello, Allan

On 15-Aug-01, you wrote:

AO > Hello Jan-Erik,
AO >
AO >> regarding exceptions what's the problem? if you're using stlport, It
AO >> might be a clash between the native parts and the stlport parts in c++
AO >> (which probably would disappear if the link library was made) you
AO >> can't debug when you're using exceptions on StormC4, this is known (I
AO >> hope I remember correctly)
AO >
AO > No -- this is 'out of the box' StormC.
AO >
AO > Try the attached program. Here it writes:
AO >
AO > Constructing class A
AO > Constructing class A
AO >
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

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.

With kind regards,
Jan-Erik Karlsson



Email: trg@privat.utfors.se
WWW: http://hem.fyristorg.com/TRG/
UIN (ICQ): 54667153


URA Redneck if you walk into a restaurant with a toothpick in your mouth.

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/