D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 19202 - deprecated eponymous template prints no warning
Summary: deprecated eponymous template prints no warning
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P1 regression
Assignee: No Owner
URL:
Keywords: pull
Depends on:
Blocks:
 
Reported: 2018-08-29 00:43 UTC by elpenguino+D
Modified: 2018-12-24 19:22 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description elpenguino+D 2018-08-29 00:43:49 UTC
```
void main() {
    auto b = X!();
}

template X() {
    deprecated enum X = true;
}
```
Since dmd 2.069, no warning is printed for this example.
Comment 1 Mike Franklin 2018-08-31 11:24:17 UTC
According to digger, this regression was introduced by https://github.com/dlang/dmd/pull/5135
Comment 2 Mike Franklin 2018-08-31 12:31:09 UTC
Attempted fix: https://github.com/dlang/dmd/pull/8645
Comment 3 elpenguino+D 2018-10-21 03:40:03 UTC
It seems the PR was closed without comment...?
Comment 4 RazvanN 2018-12-14 14:27:03 UTC
Slightly different fix: https://github.com/dlang/dmd/pull/9079
Comment 5 github-bugzilla 2018-12-24 19:22:40 UTC
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>