www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - DMD v121 segfaults

reply "Kris" <fu bar.com> writes:
please see bugs group ...
Apr 15 2005
parent reply "Kris" <fu bar.com> writes:
class Mapped : Buffer
{
        this()
        {
        }

        ~this()
        {
        }
}

class Buffer
{
        private uint limit;
        private uint capacity;
        private uint position;

        invariant
        {
               assert (position <= limit);
               assert (limit <= capacity);
        }
}

Copy the above into foo.d, and compile it ~ segfaults in the previously
noted place (during semantic3). If you remove the dtor, it does not
segfault. If you remove the invariant, it does not segfault.

A response post would be appreciated.
Apr 16 2005
parent "Walter" <newshound digitalmars.com> writes:
Thanks. I'll have a look at it.
Apr 16 2005