Bug 18891 – extern(C++) destructor prototype should just link; not generate field/aggregate dtor
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2018-05-21T05:30:51Z
Last change time
2018-05-23T00:13:12Z
Keywords
C++
Assigned to
No Owner
Creator
Manu
Comments
Comment #0 by turkeyman — 2018-05-21T05:30:51Z
extern(C++) classes with an extern destructor prototype still attempt to generate __xdtor locally if they have aggregate members.
This functionality should be subverted in the extern(C++) dtor case, because C++ destructors always perform a full destruction.
Comment #1 by github-bugzilla — 2018-05-21T19:39:03Z