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

Iain Buclaw <[email protected]> changed:

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

--- Comment #1 from Iain Buclaw <[email protected]> ---
Considering this a druntime bug.  However I think the proper fix would also
involve a compiler change as well.

e.g: In the druntime implementation:

static if (!__traits(isPOD, T))
{
   // Passed by reference...
}
else
{
   // Passed by value...
}

This requires the compiler to pass the objects by invisible reference in the
first place.

--

Reply via email to