mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-14 06:43:03 +00:00
parser: fix incorrect condition to raise a syntax error
* src/parse-gram.y (symbol_def): Fix test.
This commit is contained in:
@@ -522,7 +522,7 @@ symbol_def:
|
||||
else
|
||||
symbol_make_alias ($id, $alias, @alias);
|
||||
}
|
||||
if (current_class != token_sym && (0 <= $num || !$alias))
|
||||
if (current_class != token_sym && (0 <= $num || $alias))
|
||||
YYERROR;
|
||||
}
|
||||
;
|
||||
|
||||
Reference in New Issue
Block a user