Really in need of help with std.container.array.d

anonymous via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Oct 19 14:06:34 PDT 2014


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


More information about the Digitalmars-d-learn mailing list