D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 19865 - Deprecated enum values using deprecated expressions shouldn't be warned about
Summary: Deprecated enum values using deprecated expressions shouldn't be warned about
Status: NEW
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P3 minor
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-05-11 21:05 UTC by Jan Jurzitza
Modified: 2024-12-13 19:03 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 Jan Jurzitza 2019-05-11 21:05:58 UTC
enum Foo {
    a,
    deprecated b,
}

enum Bar {
	deprecated c = Foo.b
}


is generating the following deprecation notice:

a.d(7): Deprecation: enum member `a.Foo.b` is deprecated

Using deprecated values inside a deprecated field should not generate that notice.
Comment 1 dlangBugzillaToGithub 2024-12-13 19:03:22 UTC
THIS ISSUE HAS BEEN MOVED TO GITHUB

https://github.com/dlang/dmd/issues/19565

DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB