diff options
author | Florian Westphal <fw@strlen.de> | 2021-08-20 11:52:35 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2021-08-20 13:00:40 +0200 |
commit | 31b7210b5f66acb32c1c2a25cc096ab395be0760 (patch) | |
tree | 83979c22083f8320e03f7eb31b1cd482d8df35b2 /src | |
parent | 8062079da0102ea2859f1e5732da5ef9c0b9ee0c (diff) |
parser: permit symbolic define for 'queue num' again
WHen I simplified the parser to restrict 'queue num' I forgot that
instead of range and immediate value its also allowed to pass in
a variable expression, e.g.
define myq = 0
add rule ... 'queue num $myq bypass'
Allow those as well and add a test case for this.
Fixes: 767f0af82a389 ("parser: restrict queue num expressiveness")
Reported-by: Amish <anon.amish@gmail.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'src')
-rw-r--r-- | src/parser_bison.y | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/parser_bison.y b/src/parser_bison.y index 83f0250a..6b87ece5 100644 --- a/src/parser_bison.y +++ b/src/parser_bison.y @@ -3792,6 +3792,7 @@ queue_stmt_arg : QUEUENUM queue_stmt_expr_simple queue_stmt_expr_simple : integer_expr | range_rhs_expr + | variable_expr ; queue_stmt_expr : numgen_expr |