← Back to index
|
Original Bugzilla link
Bug 18992 – Appender doesn't work with structs that have impure postblit
Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2018-06-15T11:47:51Z
Last change time
2018-08-25T20:58:33Z
Assigned to
No Owner
Creator
Basile-z
Comments
Comment #0
by b2.temp — 2018-06-15T11:47:51Z
test case: import std.array; unittest { static void impure(){} struct Simple { @disable this(); // Without this, it works. this(this) { impure(); } this(int tmp) { } } struct Range { @property Simple front() { return Simple(0); } void popFront() { } @property empty() { return true; } size_t count; } Range r; auto a = r.array(); }
Comment #1
by trikkuz — 2018-07-05T15:47:08Z
See
https://issues.dlang.org/show_bug.cgi?id=13300
Comment #2
by b2.temp — 2018-08-25T20:58:33Z
*** This issue has been marked as a duplicate of issue 13300 ***