Skip to content

Commit

Permalink
Changed error message in reference outputs
Browse files Browse the repository at this point in the history
Signed-off-by: Mihai Budiu <[email protected]>
  • Loading branch information
Mihai Budiu committed Sep 9, 2022
1 parent 4c5704d commit fa7c1de
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion testdata/p4_14_errors_outputs/issue1853.p4-stderr
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
issue1853.p4(26): [--Werror=type-error] error: hdr.value.last: 'last' and 'next' for stacks can only be used in a parser
issue1853.p4(26): [--Werror=type-error] error: hdr.value.last: 'last', 'next', and 'lastIndex' for stacks can only be used in a parser
modify_field(value[last].bos, 0);
^^^^^^^^^^^
2 changes: 1 addition & 1 deletion testdata/p4_16_errors_outputs/next.p4-stderr
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
next.p4(24): [--Werror=type-error] error: stack.last: 'last' and 'next' for stacks can only be used in a parser
next.p4(24): [--Werror=type-error] error: stack.last: 'last', 'next', and 'lastIndex' for stacks can only be used in a parser
stack.last = { 10 };
^^^^^^^^^^
2 changes: 1 addition & 1 deletion testdata/p4_16_errors_outputs/stack2.p4-stderr
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ stack2.p4(22)
stack2.p4(21)
h[5] stack1;
^^^^
stack2.p4(25): [--Werror=type-error] error: Expression stack1.lastIndex cannot be the target of an assignment
stack2.p4(25): [--Werror=type-error] error: stack1.lastIndex: 'last', 'next', and 'lastIndex' for stacks can only be used in a parser
stack1.lastIndex = 3; // not an l-value
^^^^^^^^^^^^^^^^
stack2.p4(26): [--Werror=type-error] error: Expression stack2.size cannot be the target of an assignment
Expand Down

0 comments on commit fa7c1de

Please sign in to comment.