November 23, 2020 [Issue 21417] New: core.stdcpp.new_.cpp_delete does not work for Objects because it requires destruction to be @nogc | ||||
|---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=21417 Issue ID: 21417 Summary: core.stdcpp.new_.cpp_delete does not work for Objects because it requires destruction to be @nogc Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: enhancement Priority: P1 Component: druntime Assignee: nobody@puremagic.com Reporter: n8sh.secondary@hotmail.com `core.stdcpp.new_.cpp_delete(T)(T instance) if (is(T == class))` can never compile for any T with D linkage because it is annotated with @nogc and object.Object.~this() is not @nogc. -- | ||||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply