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

Thomas Kuehne thomas-dloop at kuehne.cn
Sun Apr 9 22:04:56 PDT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

d-bugmail at 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-----



More information about the Digitalmars-d-bugs mailing list