Bug 4641 – Associative arrays of structs with alias this broken.

Status
RESOLVED
Resolution
FIXED
Severity
critical
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
Other
OS
Linux
Creation time
2010-08-13T13:43:00Z
Last change time
2010-10-08T13:40:56Z
Keywords
wrong-code
Assigned to
nobody
Creator
pelle.mansson

Comments

Comment #0 by pelle.mansson — 2010-08-13T13:43:42Z
Code: ==========================================8<------------------------------------ struct S { int i; alias i this; } void main() { S[int] ss; ss[0] = S.init; // This line causes Range Violation. } ------------------------------------>8========================================== I am using DMD v2.048.
Comment #1 by clugdbug — 2010-09-20T08:37:54Z
Related to bug 2451 and possibly also 2943.
Comment #2 by bugzilla — 2010-10-08T13:40:56Z