Code: struct S { const(int)[4] data; this(const(int)[4] d) { data = d; } } void main() { S s; } Compiler output: test.d(4): Error: slice this.data[] is not mutable
Probably duplicate of bug 6174.
*** This issue has been marked as a duplicate of issue 6174 ***