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.