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

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Windows
Creation time
2006-11-17T14:34:00Z
Last change time
2014-02-15T13:19:17Z
Keywords
accepts-invalid
Assigned to
bugzilla
Creator
smjg

Comments

Comment #0 by smjg — 2006-11-17T14:34:49Z
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 by bugzilla — 2008-07-09T22:35:00Z
Fixed dmd 1.032 and 2.016