D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 7416 - 2.058 regression: fails to instantiate a constrained function template with a nested function
Summary: 2.058 regression: fails to instantiate a constrained function template with a...
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P2 regression
Assignee: No Owner
URL:
Keywords: rejects-valid
Depends on:
Blocks:
 
Reported: 2012-02-01 03:18 UTC by Nils
Modified: 2012-02-01 21:21 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 Nils 2012-02-01 03:18:11 UTC
---
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 github-bugzilla 2012-02-01 21:20:39 UTC
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