[Issue 22779] New: druntime: Calling __delete with null pointer-to-struct segfaults

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Feb 16 11:38:58 UTC 2022


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

          Issue ID: 22779
           Summary: druntime: Calling __delete with null pointer-to-struct
                    segfaults
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: critical
          Priority: P1
         Component: druntime
          Assignee: nobody at puremagic.com
          Reporter: ibuclaw at gdcproject.org

---
import core.memory;
A *aptr;
__delete(aptr);
---

This differs from both the documentation of __delete and the old delete
behaviour which is to return with no effect.

--


More information about the Digitalmars-d-bugs mailing list