← Back to index
|
Original Bugzilla link
Bug 7642 – opDispatch with AA crashes dmd
Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-03-03T23:10:00Z
Last change time
2012-03-04T00:37:32Z
Assigned to
nobody
Creator
zan77137
Comments
Comment #0
by zan77137 — 2012-03-03T23:10:24Z
This code crashes dmd: struct Foo { int[int] foo; } struct Bar { Foo xxx; template opDispatch(string name) { @property auto ref opDispatch(this X, V)(auto ref V v) { return mixin("xxx."~name~" = v"); } } } void main() { Bar bar; bar.foo[0] = 0; }
Comment #1
by k.hara.pg — 2012-03-04T00:37:32Z
*** This issue has been marked as a duplicate of issue 7578 ***