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
http://d.puremagic.com/issues/show_bug.cgi?id=11220
deadalnix changed:
What|Removed |Added
Status|RESOLVED|REOPENED
Resolution|FIXED
http://d.puremagic.com/issues/show_bug.cgi?id=11220
deadalnix changed:
What|Removed |Added
Status|REOPENED|RESOLVED
Resolution|
http://d.puremagic.com/issues/show_bug.cgi?id=11220
Walter Bright changed:
What|Removed |Added
Status|NEW |RESOLVED
Resolution|
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
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
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
>
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
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
http://d.puremagic.com/issues/show_bug.cgi?id=11220
Kenji Hara changed:
What|Removed |Added
Keywords||pull, rejects-valid
--- Comment #7 from
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
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
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
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(
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
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
http://d.puremagic.com/issues/show_bug.cgi?id=11220
deadalnix changed:
What|Removed |Added
Severity|normal |regression
--
Configure issuemail: http:
17 matches
Mail list logo