[Issue 21417] New: core.stdcpp.new_.cpp_delete does not work for Objects because it requires destruction to be @nogc
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Nov 23 19:54:17 UTC 2020
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 at puremagic.com
Reporter: n8sh.secondary at 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.
--
More information about the Digitalmars-d-bugs
mailing list