Bug 23796 – `deprecated` attribute ignored by opDispatch

Status
NEW
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Windows
Creation time
2023-03-20T20:54:32Z
Last change time
2024-12-13T19:27:53Z
Assigned to
No Owner
Creator
John Chapman
Moved to GitHub: dmd#18158 →

Comments

Comment #0 by johnch_atms — 2023-03-20T20:54:32Z
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(); }
Comment #1 by robert.schadek — 2024-12-13T19:27:53Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/18158 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB