[Issue 18347] New: stdx.allocator dispose should be @safe
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Feb 1 07:21:07 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=18347
Issue ID: 18347
Summary: stdx.allocator dispose should be @safe
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P1
Component: phobos
Assignee: nobody at puremagic.com
Reporter: greensunny12 at gmail.com
---
import std.stdio;
void main() @safe
{
import std.experimental.allocator.mallocator : Mallocator;
import std.experimental.allocator : makeArray, dispose;
alias alloc = Mallocator.instance;
auto p = alloc.makeArray!ubyte(20);
alloc.dispose(p);
}
---
https://run.dlang.io/is/t2IMq2
No ready why this shouldn't work.
--
More information about the Digitalmars-d-bugs
mailing list