[Issue 7917] [ICE] (toir.c 178) with nested function

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu May 3 03:24:19 PDT 2012


http://d.puremagic.com/issues/show_bug.cgi?id=7917


Denis <verylonglogin.reg at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |verylonglogin.reg at gmail.com


--- Comment #8 from Denis <verylonglogin.reg at gmail.com> 2012-05-03 14:25:30 MSD ---
This issue is derived from Issue 7955. Everything you need to create this issue
from Issue 7955 is to wrap lambda template in a nested function.

Code from Issue 7955 comment #1 with addition of `spam`:
---
void f(alias fun)() { }

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

void main() {
    g!int();
    g!long();
}
---

-- 
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