← Back to index
|
Original Bugzilla link
Bug 3285 – Struct's destructor not called
Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
Windows
Creation time
2009-09-03T04:56:00Z
Last change time
2015-06-09T01:26:49Z
Assigned to
nobody
Creator
yaochenghan
Comments
Comment #0
by yaochenghan — 2009-09-03T04:56:39Z
import std.stdio; struct S { ~this() { writefln("die!"); } void fun(){} } S fun() { return S(); } int main(char[][] args) { fun().fun(); ... return 0; } Struct's destructor not called .
Comment #1
by lio+bugzilla — 2010-07-06T01:34:59Z
*** This issue has been marked as a duplicate of issue 3516 ***