Bug 21417 – core.stdcpp.new_.cpp_delete unnecessarily requires destruction to be @nogc
Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
druntime
Product
D
Version
D2
Platform
All
OS
All
Creation time
2020-11-23T19:54:17Z
Last change time
2020-12-14T09:40:31Z
Keywords
pull
Assigned to
No Owner
Creator
Nathan S.
Comments
Comment #0 by n8sh.secondary — 2020-11-23T19:54:17Z
`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.
Comment #1 by dlang-bot — 2020-11-23T19:58:16Z
@n8sh created dlang/druntime pull request #3284 "core.stdcpp.new_.cpp_delete unnecessarily requires destruction to be @nogc" fixing this issue:
- Fix Issue 21417 - core.stdcpp.new_.cpp_delete unnecessarily requires destruction to be @nogc
https://github.com/dlang/druntime/pull/3284
Comment #2 by dlang-bot — 2020-12-14T09:40:31Z
dlang/druntime pull request #3284 "core.stdcpp.new_.cpp_delete unnecessarily requires destruction to be @nogc" was merged into stable:
- 1d4a1dd61f2e5c5ff0965a9c222681dfaff2ed6d by Nathan Sashihara:
Fix Issue 21417 - core.stdcpp.new_.cpp_delete unnecessarily requires destruction to be `@nogc`
https://github.com/dlang/druntime/pull/3284