www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Bug 83] New: Assertion failure: 3567 'expression.c', crossaliasing problem

reply d-bugmail puremagic.com writes:
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


-- 
Apr 03 2006
next sibling parent Thomas Kuehne <thomas-dloop kuehne.cn> writes:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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 -----BEGIN PGP SIGNATURE----- iD8DBQFEOfS43w+/yD4P9tIRAuEzAJ42TpLrGo5CWBI/RlfZcr9PPbAotACgoLy6 PaRFSoGAvregWPnvbwHr9Js= =+tG7 -----END PGP SIGNATURE-----
Apr 09 2006
prev sibling parent d-bugmail puremagic.com writes:
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


-- 
May 25 2006