Thread overview
[Bug 83] New: Assertion failure: 3567 'expression.c', crossaliasing problem
Apr 04, 2006
d-bugmail
Apr 10, 2006
Thomas Kuehne
May 25, 2006
d-bugmail
April 04, 2006
http://d.puremagic.com/bugzilla/show_bug.cgi?id=83

           Summary: Assertion failure: 3567 'expression.c', crossaliasing
                    problem
           Product: D
           Version: 0.151
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P3
         Component: DMD
        AssignedTo: bugzilla@digitalmars.com
        ReportedBy: nail-mail@mail.ru


template T1()
{
        alias T2!().myproperty myproperty;
        real myproperty()
        {
                return 0;
        }
}

template T2()
{
        alias T1!().myproperty myproperty;
        void myproperty(real x)
        {
        }
}

class C(alias M1, alias M2)
{
        mixin M1!();
        mixin M2!();
}

void main()
{
        auto c = new C!(T1,T2);
        c.myproperty = 0;
}

Compilation gives some errors and:

Assertion failure: 'type' on line 3567 in file 'expression.c' abnormal program termination


-- 

April 10, 2006
d-bugmail@puremagic.com schrieb am 2006-04-04:
> http://d.puremagic.com/bugzilla/show_bug.cgi?id=83
> template T1()
> {
>         alias T2!().myproperty myproperty;
>         real myproperty()
>         {
>                 return 0;
>         }
> }
>
> template T2()
> {
>         alias T1!().myproperty myproperty;
>         void myproperty(real x)
>         {
>         }
> }
>
> class C(alias M1, alias M2)
> {
>         mixin M1!();
>         mixin M2!();
> }
>
> void main()
> {
>         auto c = new C!(T1,T2);
>         c.myproperty = 0;
> }
>
> Compilation gives some errors and:
>
> Assertion failure: 'type' on line 3567 in file 'expression.c' abnormal program termination

Added to DStress as http://dstress.kuehne.cn/nocompile/m/mixin_19_A.d http://dstress.kuehne.cn/nocompile/m/mixin_19_B.d http://dstress.kuehne.cn/nocompile/m/mixin_19_C.d http://dstress.kuehne.cn/nocompile/m/mixin_19_D.d http://dstress.kuehne.cn/nocompile/m/mixin_19_E.d http://dstress.kuehne.cn/nocompile/m/mixin_19_F.d http://dstress.kuehne.cn/nocompile/m/mixin_19_G.d http://dstress.kuehne.cn/nocompile/m/mixin_19_H.d http://dstress.kuehne.cn/nocompile/m/mixin_19_I.d http://dstress.kuehne.cn/nocompile/m/mixin_19_J.d http://dstress.kuehne.cn/nocompile/m/mixin_19_K.d http://dstress.kuehne.cn/nocompile/m/mixin_19_L.d http://dstress.kuehne.cn/nocompile/m/mixin_19_M.d http://dstress.kuehne.cn/nocompile/m/mixin_19_N.d

Thomas


May 25, 2006
http://d.puremagic.com/bugzilla/show_bug.cgi?id=83


bugzilla@digitalmars.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




------- Comment #2 from bugzilla@digitalmars.com  2006-05-25 04:18 -------
Fixed 0.158


--