From 6c39ade5ba3d4d538634c83ae5c3ad242007dea2 Mon Sep 17 00:00:00 2001 From: johanknol Date: Tue, 9 Oct 2001 11:51:38 +0000 Subject: [PATCH] fixed bug #469089 part 1 git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1380 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- src/SDCC.y | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/SDCC.y b/src/SDCC.y index 3306c3ee..ce8a014b 100644 --- a/src/SDCC.y +++ b/src/SDCC.y @@ -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); } ; -- 2.47.2