[Issue 5353] New: clear function is calling the destructor twice
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Dec 14 13:26:03 PST 2010
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: nobody at puremagic.com
ReportedBy: craigblack2 at cox.net
--- Comment #0 from Craig Black <craigblack2 at cox.net> 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: -------
More information about the Digitalmars-d-bugs
mailing list