``` void main() { auto b = X!(); } template X() { deprecated enum X = true; } ``` Since dmd 2.069, no warning is printed for this example.
According to digger, this regression was introduced by https://github.com/dlang/dmd/pull/5135
Attempted fix: https://github.com/dlang/dmd/pull/8645
It seems the PR was closed without comment...?
Slightly different fix: https://github.com/dlang/dmd/pull/9079
Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/e2bda940487a87c2e312a795710a5c0e658c41f3 Fix Issue 19202 - deprecated eponymous template prints no warning https://github.com/dlang/dmd/commit/07aff0bdc67408974326c9b6cd9ffb542aa399b9 Merge pull request #9079 from RazvanN7/Issue_19202 Fix Issue 19202 - deprecated eponymous template prints no warning merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>