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

--- Comment #5 from Walter Bright <[email protected]> ---
A simpler version that should fail to compile:

int** global;

struct S { int** str; }

void f() @safe
{
    int* buf;
    S[1] c = S(&buf);
    global = c[0].str; /* This should be rejected. */
}

--

Reply via email to