Using RefCounted in recursive structures and templates
ag0aep6g via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Tue May 10 15:10:06 PDT 2016
Am 10.05.2016 um 21:43 schrieb Lodovico Giaretta:
> import std.typecons: RefCounted;
>
> struct S
> {
> RefCounted!S s; // error: struct S no size yet for forward reference
> }
This used to work with 2.067. I've filed a phobos regression for this
very code, and two related dmd issues with different reductions:
https://issues.dlang.org/show_bug.cgi?id=16011 - [REG2.068] recursive
RefCounted used to work
https://issues.dlang.org/show_bug.cgi?id=16012 - [REG2.070] forward
reference with alias this
https://issues.dlang.org/show_bug.cgi?id=16013 - [REG2.072a] ICE with
mutually dependent structs and alias this
More information about the Digitalmars-d-learn
mailing list