Bug 19193 – deprecated attribute on enum members in templates is ignored

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2018-08-26T23:25:12Z
Last change time
2018-08-30T06:24:46Z
Keywords
pull
Assigned to
No Owner
Creator
elpenguino+D

Comments

Comment #0 by elpenguino+D — 2018-08-26T23:25:12Z
``` void main() { cast(void)X!int.A.b; } template X(T) { enum A { deprecated b } } ``` Compiles with no complaint. Should issue a deprecation message. Issue exists in DMD 2.082.0 beta.
Comment #1 by slavo5150 — 2018-08-27T05:38:28Z
Comment #2 by github-bugzilla — 2018-08-30T06:24:43Z
Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/edc9310b71ceaf91f37bb973eb3e6b39c4337a76 fix Issue 19193 - deprecated attribute on enum members in templates is ignored https://github.com/dlang/dmd/commit/5d124c13389f5cb4b2fd6e119bea308870330326 Merge pull request #8621 from JinShil/fix_19193 Issue 19193 - deprecated attribute on enum members in templates is ignored