Bug 20049 – object.destroy doesn't propagate attributes

Status
RESOLVED
Resolution
FIXED
Severity
major
Priority
P1
Component
druntime
Product
D
Version
D2
Platform
All
OS
All
Creation time
2019-07-14T04:33:34Z
Last change time
2019-07-14T16:49:58Z
Assigned to
No Owner
Creator
Илья Ярошенко

Comments

Comment #0 by ilyayaroshenko — 2019-07-14T04:33:34Z
https://run.dlang.io/is/OHlf2c import std.stdio; static interface I { ref double bar() @safe pure nothrow @nogc; } static abstract class D { int index; } static class C : D, I { double value; ref double bar() @safe pure nothrow @nogc { return value; } this(double d) { value = d; } ~this() nothrow {} } void main() nothrow { auto c = new C(1); destroy(c); }
Comment #1 by dlang-bot — 2019-07-14T07:28:49Z
@ShigekiKarita updated dlang/druntime pull request #2674 "Fix issue 20049 - object.destroy doesn't propagate attributes " mentioning this issue: - add minimal regression test for Issue 20049 https://github.com/dlang/druntime/pull/2674
Comment #2 by dlang-bot — 2019-07-14T12:28:52Z
dlang/druntime pull request #2674 "Fix issue 20049 - object.destroy doesn't propagate attributes " was merged into stable: - 7864d22dca1d0323587d3320f7e0b1f9f294ba6f by karita: add minimal regression test for Issue 20049 https://github.com/dlang/druntime/pull/2674