April 05, 2023
https://issues.dlang.org/show_bug.cgi?id=23824

          Issue ID: 23824
           Summary: No warnings printed for aliases to deprecated enum
                    members
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Keywords: accepts-invalid
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody@puremagic.com
          Reporter: elpenguino+D@gmail.com

This code produces no deprecation warnings:
```
struct S {
    deprecated enum value1 = 5;
}
alias shouldWarn = S.value1;
```
The shouldWarn alias should produce a warning. Referencing the alias does
produce a deprecation warning, however. Aliases to deprecated non-member enums
also produce warnings as expected.

--