[Issue 7416] New: 2.058 regression: fails to instantiate a constrained function template with a nested function
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Feb 1 03:18:13 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7416
Summary: 2.058 regression: fails to instantiate a constrained
function template with a nested function
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Keywords: rejects-valid
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: mailme+d at nilsb.dyndns.org
--- Comment #0 from Nils <mailme+d at nilsb.dyndns.org> 2012-02-01 03:18:11 PST ---
---
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)
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list