← Back to index
|
Original Bugzilla link
Bug 7416 – 2.058 regression: fails to instantiate a constrained function template with a nested function
Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-02-01T03:18:00Z
Last change time
2012-02-01T21:21:10Z
Keywords
rejects-valid
Assigned to
nobody
Creator
nilsbossung
Comments
Comment #0
by nilsbossung — 2012-02-01T03:18:11Z
--- void t(alias a)() if(is(typeof(a()))) {} void failure() { void f() {} alias t!f x; // "does not match template declaration" } --- introduced by commit 47a6eab28b169849e835ea1299a811ec946f1a89 (Add escape check to nested function symbol)
Comment #1
by github-bugzilla — 2012-02-01T21:20:39Z
Commit pushed to master at
https://github.com/D-Programming-Language/dmd
https://github.com/D-Programming-Language/dmd/commit/960f6fd4404750ab2d637f66d63ff70c98f5b73c
fix Issue 7416 - 2.058 regression: fails to instantiate a constrained function template with a nested function