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

--- Comment #1 from Nicholas Wilson <[email protected]> ---
The extra R struct is not necessary in the above

The following crashes with a much deeper call stack (27 vs. 8):

struct G
{
        ubyte[] I;
        alias I this;
}

auto M(ubyte[])
{
        G N;
        return N;
}

struct U { int V; }

void X()
{
        func((cast(U[])[].M));
}

void func(U[]) {}

--

Reply via email to