[Issue 3176] Compiler hangs on poorly formed mixin in variadic template

2014-04-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=3176

Walter Bright  changed:

   What|Removed |Added

Version|1.045   |D1

--


[Issue 3176] Compiler hangs on poorly formed mixin in variadic template

2009-10-13 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3176


Walter Bright  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||bugzi...@digitalmars.com
 Resolution||FIXED


--- Comment #4 from Walter Bright  2009-10-13 
13:46:24 PDT ---
Fixed dmd 1.049 and 2.034

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 3176] Compiler hangs on poorly formed mixin in variadic template

2009-08-05 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3176


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