[Issue 4440] inlined delegates produces different asm than straight lined code

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Jul 11 11:19:22 PDT 2010


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



--- Comment #3 from Brad Roberts <braddr at puremagic.com> 2010-07-11 11:19:18 PDT ---
Ok.. still doesn't inline the delegate in this version:

extern(C) int printf(const char*, ...);

void main()
{
    auto d = (ref int j) { return j == 99; };

    foreach(i; 1 .. 100)
        if (d(i))
            printf("i = %d\n", i);
}

There's nothing in the dmd frontend inliner that even tries to deal with this
sort of inlining right now.

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