Bug 83 – Assertion failure: 3567 'expression.c', crossaliasing problem

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Windows
Creation time
2006-04-04T01:53:00Z
Last change time
2014-02-15T02:09:20Z
Keywords
ice-on-invalid-code
Assigned to
bugzilla
Creator
nail-mail

Comments

Comment #0 by nail-mail — 2006-04-04T01:53:28Z
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
Comment #1 by thomas-dloop — 2006-04-10T00:05:23Z
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 [email protected] 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-----
Comment #2 by bugzilla — 2006-05-25T04:18:51Z
Fixed 0.158