D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 21417 - core.stdcpp.new_.cpp_delete unnecessarily requires destruction to be @nogc
Summary: core.stdcpp.new_.cpp_delete unnecessarily requires destruction to be @nogc
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: druntime (show other issues)
Version: D2
Hardware: All All
: P1 enhancement
Assignee: No Owner
URL:
Keywords: pull
Depends on:
Blocks:
 
Reported: 2020-11-23 19:54 UTC by Nathan S.
Modified: 2020-12-14 09:40 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Nathan S. 2020-11-23 19:54:17 UTC
`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 Dlang Bot 2020-11-23 19:58:16 UTC
@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 Dlang Bot 2020-12-14 09:40:31 UTC
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