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

2013-11-21 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=11220 --- Comment #15 from Kenji Hara 2013-11-21 23:16:22 PST --- *** Issue 8994 has been marked as a duplicate of this issue. *** -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail

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

2013-10-18 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=11220 deadalnix changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution|FIXED

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

2013-10-18 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=11220 deadalnix changed: What|Removed |Added Status|REOPENED|RESOLVED Resolution|

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

2013-10-11 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=11220 Walter Bright changed: What|Removed |Added Status|NEW |RESOLVED Resolution|

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

2013-10-11 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=11220 --- Comment #12 from github-bugzi...@puremagic.com 2013-10-11 11:40:54 PDT --- Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/b83b82f635bc6f4f59f63bf2273de0923841c

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

2013-10-11 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=11220 --- Comment #11 from deadalnix 2013-10-11 00:21:00 PDT --- (In reply to comment #10) > (In reply to comment #9) > > (In reply to comment #7) > > > https://github.com/D-Programming-Language/dmd/pull/2652 > > > > Awesome ! You really impress me

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

2013-10-10 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=11220 --- Comment #10 from Kenji Hara 2013-10-10 23:42:57 PDT --- (In reply to comment #9) > (In reply to comment #7) > > https://github.com/D-Programming-Language/dmd/pull/2652 > > Awesome ! You really impress me Kenji ! > > Sadly I know have >

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

2013-10-10 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=11220 --- Comment #9 from deadalnix 2013-10-10 23:15:50 PDT --- (In reply to comment #7) > https://github.com/D-Programming-Language/dmd/pull/2652 Awesome ! You really impress me Kenji ! Sadly I know have dmd: struct.c:876: virtual void StructDec

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

2013-10-10 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=11220 --- Comment #8 from Walter Bright 2013-10-10 21:56:11 PDT --- (In reply to comment #7) > https://github.com/D-Programming-Language/dmd/pull/2652 It's sure a pleasure working with you, Kenji! -- Configure issuemail: http://d.puremagic.com/i

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

2013-10-10 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=11220 Kenji Hara changed: What|Removed |Added Keywords||pull, rejects-valid --- Comment #7 from

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

2013-10-10 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=11220 --- Comment #6 from Walter Bright 2013-10-10 21:29:11 PDT --- If I write it this way: int parsePrimaryExpression(int x) { parseAmbiguous!( (parsed){ x += 1; } )(); return 1; } template parseAmbiguous(alias handler) { typeof(hand

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

2013-10-10 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=11220 --- Comment #5 from Walter Bright 2013-10-10 20:41:53 PDT --- The trouble is in the "typeof(handler(1))". The type is "void", but the compiler instantiates the template "handler" along the way, and "handler" needs a frame pointer, and doesn't

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

2013-10-10 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=11220 --- Comment #4 from Walter Bright 2013-10-10 20:39:04 PDT --- And smaller still: int parsePrimaryExpression(int x) { parseAmbiguous!( (parsed){ x += 1; } )(); return 1; } typeof(handler(1)) parseAmbiguous(alias handler)() { retu

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

2013-10-10 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=11220 --- Comment #3 from Walter Bright 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(

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

2013-10-10 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=11220 --- Comment #2 from deadalnix 2013-10-10 18:32:06 PDT --- This is surprising because I'm working with 2.063.2 . I guess I'm somehow being lucky. It may be dependant on the compilation order or the way things are spread accross modules. Anyway

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

2013-10-10 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=11220 --- Comment #1 from Kenji Hara 2013-10-10 18:26:27 PDT --- Slightly verified test case. 1. Remove UFCS in order to compile the code by using old compiler. 2. Add dummy return type 'int' to parsePrimaryExpression function. Compilation succeeds

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

2013-10-10 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=11220 deadalnix changed: What|Removed |Added Severity|normal |regression -- Configure issuemail: http: