www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - Stack overflow via use of super.method()

reply "antiAlias" <fu bar.com> writes:
This causes a stack fault, and showed up with the latest compiler release
(Windows & linux). We would appreciate a fix asap, since this breaks all
Mango-based projects. Can you perhaps make a prior version of the compiler
available in the meantime?

Note that Z.write() just calls itself ...

class X
{
        void write (int x)
        {
        }
}


class Y : X
{
}


class Z : Y
{
        override void write (int x)
        {
                super.write (x);
        }
}


void main()
{
        Z z = new Z;

        z.write(1);
}
Aug 30 2004
parent reply Ant <duitoolkit yahoo.ca> writes:
On Mon, 30 Aug 2004 18:49:44 -0700, antiAlias wrote:

 This causes a stack fault,
Old news ;) see "Super Bug" thread DUI doesn't compile since 0.99, I wonder why so few people notice it... 101 is just out I'm getting it now as is claims to fix that. Ant
Aug 30 2004
parent reply Ant <duitoolkit yahoo.ca> writes:
On Mon, 30 Aug 2004 23:27:28 -0400, Ant wrote:

 On Mon, 30 Aug 2004 18:49:44 -0700, antiAlias wrote:
 
 This causes a stack fault,
Old news ;) see "Super Bug" thread DUI doesn't compile since 0.99,
of course I meant "doesn't run" it's fixed now. Ant
Aug 30 2004
parent "antiAlias" <fu bar.com> writes:
Yep - sorry I didn't see your post on that one Ant ...

"Ant" <duitoolkit yahoo.ca> wrote in message
news:pan.2004.08.31.03.33.36.448566 yahoo.ca...
 On Mon, 30 Aug 2004 23:27:28 -0400, Ant wrote:

 On Mon, 30 Aug 2004 18:49:44 -0700, antiAlias wrote:

 This causes a stack fault,
Old news ;) see "Super Bug" thread DUI doesn't compile since 0.99,
of course I meant "doesn't run" it's fixed now. Ant
Aug 30 2004