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

Walter Bright <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #3 from Walter Bright <[email protected]> ---
Simplified test case without templates:

struct S
{
    this(ref const(S));
    ~this();
}

struct A
{
    C obj;

    void disp(S params)
    {
        return obj.setS(params);
    }
}

extern(C++) struct C
{
    void setS(ref const S);
    void setS(const S s)
    {
        setS(s);
    }
}

void main()
{
    A a;
    a.disp(S());
}

--

Reply via email to