projects
/
cparser
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
503bb0c
)
BugFix: return invalid statement for invalid goto
author
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Mon, 23 Jun 2008 12:58:04 +0000
(12:58 +0000)
committer
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Mon, 23 Jun 2008 12:58:04 +0000
(12:58 +0000)
[r20219]
parser.c
patch
|
blob
|
history
diff --git
a/parser.c
b/parser.c
index
db28f7e
..
82284c0
100644
(file)
--- a/
parser.c
+++ b/
parser.c
@@
-7501,7
+7501,7
@@
static statement_t *parse_goto(void)
if(token.type != T_IDENTIFIER) {
parse_error_expected("while parsing goto", T_IDENTIFIER, NULL);
eat_statement();
-
return NULL
;
+
goto end_error
;
}
symbol_t *symbol = token.v.symbol;
next_token();