[Issue 18891] New: extern(C++) destructor prototype should just link; not generate field/aggregate dtor

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon May 21 05:30:51 UTC 2018


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

          Issue ID: 18891
           Summary: extern(C++) destructor prototype should just link; not
                    generate field/aggregate dtor
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: turkeyman at gmail.com

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.

--


More information about the Digitalmars-d-bugs mailing list