http://d.puremagic.com/issues/show_bug.cgi?id=5353
Summary: clear function is calling the destructor twice
Product: D
Version: D2
Platform: All
OS/Version: Windows
Status: NEW
Severity: normal
Priority: P2
Component: Phobos
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Craig Black <[email protected]> 2010-12-14 13:24:16 PST
---
struct A
{
~this() { writeln("here"); }
}
void main()
{
A *a = new A;
clear(*a);
}
prints out:
here
here
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------