← Back to index
|
Original Bugzilla link
Bug 19202 – deprecated eponymous template prints no warning
Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2018-08-29T00:43:49Z
Last change time
2018-12-24T19:22:43Z
Keywords
pull
Assigned to
No Owner
Creator
elpenguino+D
Comments
Comment #0
by elpenguino+D — 2018-08-29T00:43:49Z
``` void main() { auto b = X!(); } template X() { deprecated enum X = true; } ``` Since dmd 2.069, no warning is printed for this example.
Comment #1
by slavo5150 — 2018-08-31T11:24:17Z
According to digger, this regression was introduced by
https://github.com/dlang/dmd/pull/5135
Comment #2
by slavo5150 — 2018-08-31T12:31:09Z
Attempted fix:
https://github.com/dlang/dmd/pull/8645
Comment #3
by elpenguino+D — 2018-10-21T03:40:03Z
It seems the PR was closed without comment...?
Comment #4
by razvan.nitu1305 — 2018-12-14T14:27:03Z
Slightly different fix:
https://github.com/dlang/dmd/pull/9079
Comment #5
by github-bugzilla — 2018-12-24T19:22:40Z
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 <
[email protected]
>