[Issue 5667] [GSoC] "clear" does not call destructors on structs embedded in structs
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Jul 27 12:02:44 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5667
Kenji Hara <k.hara.pg at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |k.hara.pg at gmail.com
--- Comment #6 from Kenji Hara <k.hara.pg at gmail.com> 2011-07-27 12:02:38 PDT ---
This is similar issue of bug5661.
T.__dtor == ~this(). So a struct type may not have __dtor.
But TypeInfo_Struct.xdtor specifies internal destructor calling function.
It calls *all* destructors of members even if itself does not have user-defined
destructor.
I think using typeof(T).destroy is right way for fixing this bug.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list