[Issue 15292] [REG2.068.0] Segmentation fault with self-referencing struct / inout / alias this

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Thu Nov 5 12:21:07 PST 2015


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

Vladimir Panteleev <thecybershadow at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[REG2.068.0] Segmentation   |[REG2.068.0] Segmentation
                   |fault with self-referencing |fault with self-referencing
                   |struct                      |struct / inout / alias this

--- Comment #1 from Vladimir Panteleev <thecybershadow at gmail.com> ---
Reduced:

//////// test.d ////////
struct NullableRef(T)
{
    inout(T) get() inout
    {
        assert(false);
    }

    alias get this;
}

struct Node
{
    NullableRef!Node n;
}
////////////////////////

--


More information about the Digitalmars-d-bugs mailing list