March 20, 2023
https://issues.dlang.org/show_bug.cgi?id=23796

          Issue ID: 23796
           Summary: `deprecated` attribute ignored by opDispatch
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Windows
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody@puremagic.com
          Reporter: johnch_atms@hotmail.com

The following program doesn't warn about the deprecation as it should.

---
struct Bug {

  deprecated void report_() {}

  void opDispatch(string name)() { mixin(name, "_();"); }

}

void main() {
  Bug().report();
}

--