[Issue 3176] Compiler hangs on poorly formed mixin in variadic template
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Aug 5 19:07:58 PDT 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3176
Don <clugdbug at yahoo.com.au> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |patch
Version|2.031 |1.045
Summary|Compiler hangs on poorly |Compiler hangs on poorly
|formed recurrence function |formed mixin in variadic
| |template
--- Comment #3 from Don <clugdbug at yahoo.com.au> 2009-08-05 19:07:57 PDT ---
/*
Actually it's not so complicated as I thought -- it's just that after fixing
this, it falls foul of bug #3196. On D1, this is a complete fix.
PATCH: parse.c, line 2899 in DMD1.046, line 3358 in DMD2.
- while (token.value != TOKrcurly)
+ while (token.value != TOKrcurly && token.value != TOKeof)
*/
// Even smaller test case:
void foo(S...)(S u) {
alias typeof(mixin("{ return a[1;}()")) z;
}
void main() {
foo!()(0);
}
--
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