On Wed, Jul 12, 2000 at 11:48:17AM -0500, Albert Chin-A-Young wrote:
> On Mon, Jul 03, 2000 at 03:06:44AM +0400, Alexander V. Lukyanov wrote:
> > Eugene Exarevsky <[EMAIL PROTECTED]> has found the workaround. It turned out
> > that static array of classes is not properly initialized by IRIS and Unixware
> > C++ compilers.
>
> Do you know if this has been reported to SGI? If not, I can do so but
> I'll need a short code snipped to reproduce the bug.
I don't know if it was reported, but I guess not. The problem happened
in resource.cc, where a static array of classes was declared, and
class constructor added `this' to a linked list. In the last array
element wrong `this' was passed to ctor.
something like this:
class A {
public:
static A *base;
A *next;
A() { next=base; base=this; }
};
A *A::base=0;
static A a[]={A(),A(),A()};
--
Alexander. | software is knowlege is power