[Issue 11220] Regression in master: XXX__lambda2 cannot access frame of function XXX

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Oct 10 20:05:52 PDT 2013


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



--- Comment #3 from Walter Bright <bugzilla at digitalmars.com> 2013-10-10 20:05:50 PDT ---
Even smaller test case:

struct Lexer {
    int x;
}

int parsePrimaryExpression(Lexer trange) {
    parseAmbiguous!( (parsed){ trange.x += 1; } )(trange);
    return 1;
}

typeof(handler(null)) parseAmbiguous(alias handler)(Lexer trange) {
    return handler(parsePrimaryExpression(trange));
}

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