[Issue 22966] Inconsistent `shared` attribute for generated destructor

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Apr 1 12:41:12 UTC 2022


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

--- Comment #2 from kinke <kinke at gmx.net> ---
One more WTF:

```
struct WithDtor {
    int x;
    ~this() {}
}

struct A {
    WithDtor withDtor;
}

pragma(msg, A.__xdtor.mangleof);

struct B {
    shared A a;
}

void main() {
    pragma(msg, A.__xdtor.mangleof);
}
```

```
_D3mod1A11__fieldDtorMFZv
_D3mod1A11__fieldDtorMOFZv
```

--


More information about the Digitalmars-d-bugs mailing list