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; }
*** This issue has been marked as a duplicate of issue 7578 ***