www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 16184] New: allocator.dispose allows to dispose C++ interfaces

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 gmx.com
          Reporter: b2.temp 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.
--
Jun 19 2016