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 <jeremy@xxxxxxxxxx> --- src/parser_bison.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parser_bison.y b/src/parser_bison.y index b37e9e565cc1..26ce4e089e1e 100644 --- a/src/parser_bison.y +++ b/src/parser_bison.y @@ -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); } -- 2.25.1