]> git.gag.com Git - fw/sdcc/commitdiff
fixed bug #469089 part 1
authorjohanknol <johanknol@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Tue, 9 Oct 2001 11:51:38 +0000 (11:51 +0000)
committerjohanknol <johanknol@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Tue, 9 Oct 2001 11:51:38 +0000 (11:51 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1380 4a8a32a2-be11-0410-ad9d-d568d2c75423

src/SDCC.y

index 3306c3ee91a43da13b92c83c2de89afde59723f7..ce8a014b85748c7b6ed1e8d68fcbcddcaf50877d 100644 (file)
@@ -1138,11 +1138,12 @@ statement
                            ex->values.inlineasm = malloc(strlen($1)+1);
                            strcpy(ex->values.inlineasm,$1);                        
                            $$ = ex;
-                         }   
+                         } 
    ;
 
 labeled_statement
-   : identifier ':' statement          {  $$ = createLabel($1,$3);  }   
+//   : identifier ':' statement          {  $$ = createLabel($1,$3);  }   
+   : identifier ':'                    {  $$ = createLabel($1,NULL);  }   
    | CASE constant_expr ':' statement  {  $$ = createCase(STACK_PEEK(swStk),$2,$4); }
    | DEFAULT ':' statement             {  $$ = createDefault(STACK_PEEK(swStk),$3); }
    ;