[Issue 11952] struct field initialization with postblit causes un-needed destruction
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Mon May 5 11:43:59 PDT 2014
https://issues.dlang.org/show_bug.cgi?id=11952
Kenji Hara <k.hara.pg at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |wrong-code
Status|NEW |RESOLVED
Version|unspecified |D2
Resolution|--- |DUPLICATE
--- Comment #3 from Kenji Hara <k.hara.pg at gmail.com> ---
(In reply to monarchdodra from comment #0)
> Given a struct "B" with a field "sup" of type "A", where "A" has a postblit.
> Then intialization "sup" triggers a postblit (good), but also destroys the
> prior value of "sup" (useless).
This is a dup of issue 9665, and properly fixed from 2.064.
*** This issue has been marked as a duplicate of issue 9665 ***
--
More information about the Digitalmars-d-bugs
mailing list