parser_bison: fix rshift statement expression.
PATCH 1/1 parser_bison: fix rshift statement expression.
The RHS of RSHIFT statement expressions should be primary_stmt_expr, not primary_rhs_expr.
Fixes dccab4f646b4 ("parser_bison: consolidate stmt_expr rule")
Signed-off-by Jeremy Sowden <[email protected]>
--- src/parser_bison.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
src/parser_bison.y +1 -1
@@ -3022,7 +3022,7 @@ shift_stmt_expr : primary_stmt_expr { $$ = binop_expr_alloc(&@$, OP_LSHIFT, $1, $3); } - | shift_stmt_expr RSHIFT primary_rhs_expr + | shift_stmt_expr RSHIFT primary_stmt_expr { $$ = binop_expr_alloc(&@$, OP_RSHIFT, $1, $3); }
Signature · 1 line
2.25.1
Quoted 2 lines · Jeremy Sowden
The RHS of RSHIFT statement expressions should be
primary_stmt_expr, notprimary_rhs_expr.
Applied, thanks.