digitalmars.D.bugs - [Issue 16064] New: std.experimental.allocator.dispose can't be used
- via Digitalmars-d-bugs (28/28) May 23 2016 https://issues.dlang.org/show_bug.cgi?id=16064
https://issues.dlang.org/show_bug.cgi?id=16064 Issue ID: 16064 Summary: std.experimental.allocator.dispose can't be used in nogc blocks Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: major Priority: P1 Component: phobos Assignee: nobody puremagic.com Reporter: b2.temp gmx.com There's a flaw, the following code doesn't compile, even if Mallocator is 100% nogc and that the __dtor is nogc ---- import std.experimental.allocator; import std.experimental.allocator.mallocator; class Foo { ~this() nogc {} } void main() nogc { Foo foo = make!Foo(Mallocator.instance); dispose(Mallocator.instance, foo); }
May 23 2016