[Issue 14321] Unnecessary destructor call with and AA's

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue Mar 24 05:13:31 PDT 2015


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

Kenji Hara <k.hara.pg at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull, wrong-code
            Summary|2.067.0-rc1 - No postblit   |Unnecessary destructor call
                   |call with struct and AA's   |with and AA's

--- Comment #3 from Kenji Hara <k.hara.pg at gmail.com> ---
When an AA entry is newly created and initialized by the rvalue rhs, the value
will be moved in the allocated slot. So the expected behavior is:

> ----
> CTor
> end of main
> ----

https://github.com/D-Programming-Language/dmd/pull/4512

--


More information about the Digitalmars-d-bugs mailing list