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


Rainer Schuetze <r.sagita...@gmx.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch
                 CC|                            |r.sagita...@gmx.de


--- Comment #2 from Rainer Schuetze <r.sagita...@gmx.de> 2009-09-07 23:14:09 
PDT ---
This also happens for DMD 2.032 and before, but here is a patch against that
version:

Index: parse.c
===================================================================
--- parse.c    (revision 196)
+++ parse.c    (working copy)
@@ -3720,6 +3720,7 @@
         statements = new Statements();
         while (token.value != TOKcase &&
            token.value != TOKdefault &&
+           token.value != TOKeof &&
            token.value != TOKrcurly)
         {
         statements->push(parseStatement(PSsemi | PScurlyscope));
@@ -3755,6 +3756,7 @@
         statements = new Statements();
         while (token.value != TOKcase &&
            token.value != TOKdefault &&
+           token.value != TOKeof &&
            token.value != TOKrcurly)
         {
         statements->push(parseStatement(PSsemi | PScurlyscope));

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

Reply via email to