www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 13195] New: Delete calls destructor but doesn't free


          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 gmail.com
          Reporter: blah38621 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:

And the DMD PR:

Jul 23 2014