OpenAmiga (884/959)

From:Henrik Munther
Date:31 Aug 2000 at 09:50:46
Subject:Re: AMIOPEN: vpcc as a C++ compiler

On 31-Aug-00, Gregory Roberts II wrote:

> I'm wondering if anyone out there is successfully using vpcc as a C++
> compiler. I'd love to hear more about your experience.
> I know of at least one problem regarding initializers has been
> reported here. I've posted a couple of times on some problems I've had
> with fstreams with almost no response.

it is not a initializer problem, but a destructor problem. If a class
has a destructor it will cause an exception when initializing, unless
you declare it as a pointer and allocate it by new.
And as fstream has a destructor you have the problem...

I wonder how Tao can make a c++ compiler without having encountered
this...

eg. the following example will crash:

class Foo
{public:
Foo() {}
~Foo() {}
};

int main(int argc, char **argv)
{ Foo t;
}



Henrik M�nther

Subscribe/Unsubscribe: open-request@amiga.com
Amiga FAQ: http://www.amiga.com/faq.html