[Issue 15571] .dup is incompatible with self referencing structs

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue Jan 19 10:32:30 PST 2016


https://issues.dlang.org/show_bug.cgi?id=15571

Marc Schütz <schuetzm at gmx.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |schuetzm at gmx.net

--- Comment #2 from Marc Schütz <schuetzm at gmx.net> ---
Here's the error message:

/home/marc/d/druntime/import/object.d(3361): Error: struct
xx.__unittestL10_1.Node no size yet for forward reference
/home/marc/d/druntime/import/object.d(3361): Error: struct
xx.__unittestL10_1.Node no size yet for forward reference
xx.d(11): Error: struct xx.__unittestL10_1.Node no size yet for forward
reference
/home/marc/d/druntime/import/object.d(3378): Error: struct
xx.__unittestL10_1.Node no size yet for forward reference
/home/marc/d/druntime/import/object.d(3365): Error: template instance
object._rawDup!(Node) error instantiating
/home/marc/d/druntime/import/object.d(3352):        instantiated from here:
_dup!(const(Node), Node)
/home/marc/d/druntime/import/object.d(3319):        instantiated from here:
_trustedDup!(const(Node), Node)
xx.d(5):        instantiated from here: dup!(Node)
xx.d(12):        instantiated from here: Wrapper!(Node)

--


More information about the Digitalmars-d-bugs mailing list