Thread overview
[Issue 14242] destruction of static arrays with elaborate destructor elements does not propagate attributes
Jun 26, 2016
Walter Bright
Jun 29, 2016
ZombineDev
Mar 07, 2018
Mike Franklin
June 26, 2016
https://issues.dlang.org/show_bug.cgi?id=14242

Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |safe
                 CC|                            |bugzilla@digitalmars.com

--
June 29, 2016
https://issues.dlang.org/show_bug.cgi?id=14242

ZombineDev <petar.p.kirov@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |petar.p.kirov@gmail.com

--
March 07, 2018
https://issues.dlang.org/show_bug.cgi?id=14242

Mike Franklin <slavo5150@yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |slavo5150@yahoo.com
         Resolution|---                         |WORKSFORME

--- Comment #1 from Mike Franklin <slavo5150@yahoo.com> ---
This appears to have been fixed in 2.068.2.  I cannot reproduce it in the latest compiler (2.079.0) either.  Resolving as WORKSFORME.

--
July 14, 2019
https://issues.dlang.org/show_bug.cgi?id=14242

Илья Ярошенко <ilyayaroshenko@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
                 CC|                            |ilyayaroshenko@gmail.com
         Resolution|WORKSFORME                  |---

--- Comment #2 from Илья Ярошенко <ilyayaroshenko@gmail.com> ---
Does not work at least for nothrow

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);
}

--
July 14, 2019
https://issues.dlang.org/show_bug.cgi?id=14242

--- Comment #3 from Илья Ярошенко <ilyayaroshenko@gmail.com> ---
attributes are not propagated for classes destruction.

--
July 14, 2019
https://issues.dlang.org/show_bug.cgi?id=14242

Илья Ярошенко <ilyayaroshenko@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|---                         |WORKSFORME

--- Comment #4 from Илья Ярошенко <ilyayaroshenko@gmail.com> ---
well, looks like it is another bug

--