Bug 21603 – Provide deprecation warning or error for placement new syntax

Status
NEW
Severity
minor
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2021-02-01T21:01:16Z
Last change time
2024-12-13T19:14:24Z
Assigned to
No Owner
Creator
Kyle
Moved to GitHub: dmd#19863 →

Comments

Comment #0 by kbcomm — 2021-02-01T21:01:16Z
Class allocators are deprecated. 'new(address) TYPE' syntax (placement new) complains that a class allocator is needed but does not trigger a deprecation notice itself. Disregard if 'new(address) TYPE' syntax is not actually deprecated. https://forum.dlang.org/thread/[email protected]
Comment #1 by kbcomm — 2021-09-29T12:39:35Z
DMD 2.098.0 removes class allocators from the language - https://dlang.org/changelog/2.098.0.html#remove_alloc Placement new syntax still triggers a "no allocator for 'CLASSNAME'" error. As far as I know there's no way to use placement new syntax without an allocator, so this should also be removed. I think it's worth noting that Andrei's book tells people they can use this syntax so a deprecation notice would be helpful.
Comment #2 by robert.schadek — 2024-12-13T19:14:24Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/19863 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB