[Issue 24798] Under some circumstances, the compiler destroys the same object more than once
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Oct 10 13:05:54 UTC 2024
https://issues.dlang.org/show_bug.cgi?id=24798
Tim <tim.dlang at t-online.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |tim.dlang at t-online.de
--- Comment #4 from Tim <tim.dlang at t-online.de> ---
This could be related to these issues:
Issue 11382 - Bad closure variable with scoped destruction
Issue 24120 - Closures break constructor/destructor safety
DMD also contains a comment for destructors in closures:
https://github.com/dlang/dmd/blob/00df883e9f32c34a070e4ff74783c33416848dc9/compiler/src/dmd/toir.d#L800
BUG: doesn't handle destructors for the local variables. ...
--
More information about the Digitalmars-d-bugs
mailing list