digitalmars.D.bugs - [Issue 21417] New: core.stdcpp.new_.cpp_delete does not work for
- d-bugmail puremagic.com (18/18) Nov 23 2020 https://issues.dlang.org/show_bug.cgi?id=21417
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. --
Nov 23 2020