548 – Accessing a value of a deprecated enum is not caught

D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 548 - Accessing a value of a deprecated enum is not caught
Summary: Accessing a value of a deprecated enum is not caught
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D1 (retired)
Hardware: x86 Windows
: P2 normal
Assignee: Walter Bright
URL:
Keywords: accepts-invalid
Depends on:
Blocks:
Reported: 2006年11月17日 14:34 UTC by Stewart Gordon
Modified: 2014年02月15日 13:19 UTC (History)
0 users

See Also:


Attachments
Add an attachment (proposed patch, testcase, etc.)

Note You need to log in before you can comment on or make changes to this issue.
Description Stewart Gordon 2006年11月17日 14:34:49 UTC
As it happens, deprecation appears to have no effect on enums (see also issue 542, issue 543 and issue 544), but accessing one of its member values is one instance that merits its own mention.
----------
deprecated enum DepEnum { A }
int x = DepEnum.A;
----------
Comment 1 Walter Bright 2008年07月09日 22:35:00 UTC
Fixed dmd 1.032 and 2.016


AltStyle によって変換されたページ (->オリジナル) /