July 23, 2014 [Issue 13195] New: Delete calls destructor but doesn't free | ||||
---|---|---|---|---|
| ||||
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@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: https://github.com/D-Programming-Language/druntime/pull/907 And the DMD PR: https://github.com/D-Programming-Language/dmd/pull/3727 -- |
Copyright © 1999-2021 by the D Language Foundation