[Issue 7955] Nested function error in sort with lambda template but not with a lambda

2013-10-04 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7955


Denis Shelomovskij  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||WORKSFORME


--- Comment #2 from Denis Shelomovskij  2013-10-04 
11:16:19 MSD ---
Like Issue 7917 it compiles fine now. Then crashes at a runtime because of
infinite recursion. Please open a new issue is there is a problem with `sort`.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 7955] Nested function error in sort with lambda template but not with a lambda

2012-05-03 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7955


Denis  changed:

   What|Removed |Added

 CC||verylonglogin@gmail.com


--- Comment #1 from Denis  2012-05-03 14:16:10 MSD 
---
Reduced testcase:
---
void f(alias fun)() { }

void g(T)() {
f!(a => a)();
}

void main() {
g!int();
g!long();
}
---
Error: function main.g!(int).g.f!(__lambda2).f is a nested function and cannot
be accessed from main.g!(long).g

Workaround: explicitly define lambda type: `(int a) => a`.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---