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

Alex Parrill <[email protected]> changed:

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

--- Comment #3 from Alex Parrill <[email protected]> ---
I don't think opAssign should be called here. Default initialization is not
assignment; declaring a variable does not call opAssign with T.init, it just
copies over T.init.

So the real issue is that `t`'s destructor is not being called when `foo(t)` is
ran.

--

Reply via email to