[Issue 23828] New: Deprecation warnings on deprecated variables with deprecated types
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Apr 5 23:09:03 UTC 2023
https://issues.dlang.org/show_bug.cgi?id=23828
Issue ID: 23828
Summary: Deprecation warnings on deprecated variables with
deprecated types
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Keywords: rejects-valid
Severity: normal
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: elpenguino+D at gmail.com
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.
--
More information about the Digitalmars-d-bugs
mailing list