Bug 23828 – Deprecation warnings on deprecated variables with deprecated types

Status
NEW
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2023-04-05T23:09:03Z
Last change time
2024-12-13T19:28:15Z
Keywords
rejects-valid
Assigned to
No Owner
Creator
elpenguino+D
Moved to GitHub: dmd#20258 →

Comments

Comment #0 by elpenguino+D — 2023-04-05T23:09:03Z
This code currently (as of DMD 2.103.0) produces two deprecation warnings, instead of zero: ``` deprecated struct Foo {} deprecated Foo foo; ``` Declaring a variable of type Foo within other contexts, such as deprecated functions or other deprecated aggregate types, produces an expected zero warnings.
Comment #1 by robert.schadek — 2024-12-13T19:28:15Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/20258 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB