[Issue 14839] [REG2.068.0-b2] Class with static array of Array!T fails to compile

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue Jul 28 11:07:34 PDT 2015


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

ag0aep6g at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ag0aep6g at gmail.com
          Component|phobos                      |druntime

--- Comment #1 from ag0aep6g at gmail.com ---
Digger says this introduced the regression:
https://github.com/D-Programming-Language/druntime/pull/1181
("Make .destroy() work with attribute inference")

That puts the problem in druntime's destroy.

Reduced test case:
----
struct Payload {}
struct Impl { Payload _payload; }

struct RefCounted()
{
    ~this()
    {
        Impl* _refCounted;
        .destroy(_refCounted._payload);
    }
}

class Test { RefCounted!()[1] field; }
----

--


More information about the Digitalmars-d-bugs mailing list