[Issue 14246] RAII - proper destruction of partially constructed objects/structs

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun Jul 30 03:17:16 PDT 2017


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

Moritz Maxeiner <moritz at ucworks.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
                 CC|                            |moritz at ucworks.org
         Resolution|FIXED                       |---

--- Comment #9 from Moritz Maxeiner <moritz at ucworks.org> ---
The fix for this has been reverted in [1] and testing Shachar Shemesh's example
with 2.075.0 shows that the destructor for A is not run.
That this issue has been fixed is also erroneously shown in the changelog for
2.075.0.

[1] https://github.com/dlang/dmd/pull/6913

--


More information about the Digitalmars-d-bugs mailing list