[Issue 1534] Can't mix in a case statement.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Sep 7 23:14:10 PDT 2009


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


Rainer Schuetze <r.sagitario at gmx.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch
                 CC|                            |r.sagitario at gmx.de


--- Comment #2 from Rainer Schuetze <r.sagitario at 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: -------


More information about the Digitalmars-d-bugs mailing list