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

Simen Kjaeraas <[email protected]> changed:

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

--- Comment #3 from Simen Kjaeraas <[email protected]> ---
Defining an opAssign for S seems to do the trick:

int test()
{
    struct S { int x; void opAssign(S s) { x = s.x; } }
    S t1;
    S* n1 = new S;
    *n1 = t1;

    return 10;
}
pragma(msg, test());

--

Reply via email to