[Issue 7349] assert(0) in class destructor - bad (or incorrect) error

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue May 20 10:15:49 PDT 2014


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

--- Comment #3 from Joakim <joakim at airpost.net> ---
(In reply to safety0ff.bugz from comment #2)
> The current GC does not support allocation during destruction (quality of
> implementation issue.)
> When the assert fails and tries to allocate it causes an invalid memory
> operation error.

Yeah, I know what's happening, which I wrote about in github, the question is
how the people who build D plan on resolving it.

It doesn't help when druntime itself is asserting in its destructors, if this
hasn't worked in a long time.  Should we be taking all asserts out of
destructors?

--


More information about the Digitalmars-d-bugs mailing list