www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 18891] New: extern(C++) destructor prototype should just

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 puremagic.com
          Reporter: turkeyman 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.

--
May 20 2018