[Issue 16184] New: allocator.dispose allows to dispose C++ interfaces

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun Jun 19 00:40:13 PDT 2016


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

          Issue ID: 16184
           Summary: allocator.dispose allows to dispose C++ interfaces
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: ASSIGNED
          Severity: normal
          Priority: P1
         Component: phobos
          Assignee: b2.temp at gmx.com
          Reporter: b2.temp at gmx.com

But this shouldn't be allowed, following the spec:

http://dlang.org/spec/interface.html#cpp-interfaces

> It cannot be the argument of a DeleteExpression.

--


More information about the Digitalmars-d-bugs mailing list