www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 16195] New: delete should be system


          Issue ID: 16195
           Summary: delete should be  system
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: ntrel-pub mybtinternet.com

Tested with dmd v2.071.0, this compiles:

 safe unittest
    auto p = new int;
    delete p; // line 3

delete is not safe, line 3 should issue an error.

Jun 23 2016