[Issue 13195] New: Delete calls destructor but doesn't free

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Wed Jul 23 14:39:08 PDT 2014


https://issues.dlang.org/show_bug.cgi?id=13195

          Issue ID: 13195
           Summary: Delete calls destructor but doesn't free
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Keywords: wrong-code
          Severity: major
          Priority: P1
         Component: DMD
          Assignee: blah38621 at gmail.com
          Reporter: blah38621 at gmail.com

Currently if you define a struct with a destructor, but don't overload the 
delete operator, DMD will only emit the code to finalize the structure, it 
won't emit the code to free it.

This requires a druntime and a DMD change, the druntime PR is here:
https://github.com/D-Programming-Language/druntime/pull/907

And the DMD PR:
https://github.com/D-Programming-Language/dmd/pull/3727

--


More information about the Digitalmars-d-bugs mailing list