On Sunday, 19 October 2014 at 15:21:02 UTC, anonymous wrote:
---- struct RefCounted { this(this) /* const doesn't help */ {} ~this() /* const doesn't help */ {} } struct Array { RefCounted _data; } void main() {const Array a; const copy = a;} /* works */ struct RangeM {Array a;} /* works */ struct RangeC {const Array a;} /* error */ ----Looks like a compiler bug to me.
Has already been filed: https://issues.dlang.org/show_bug.cgi?id=13629