[Issue 21989] [REF 2.096] Double destruction of classes since `-preview=dtorfields` became the default

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jun 2 12:40:42 UTC 2021


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

moonlightsentinel at disroot.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |moonlightsentinel at disroot.o
                   |                            |rg

--- Comment #2 from moonlightsentinel at disroot.org ---
Thats bad. I guess the destructed class instance should be GC.free'd if the
ctor is aborted by an exception. Alternatively could also reset the instance to
it's init value.

--


More information about the Digitalmars-d-bugs mailing list