You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tested with 2017-Mar-30 version of p4test and p4c-bm2-ss, using attached program. Crash with return statement in action, no crash when the return statement in action is removed. P4_16 spec explicitly mentions allowing return statements in controls and actions. I found several test cases in p4c/testdata/p4_16_samples with return statements in controls, but none with return statements in actions. crash-for-return-in-action.p4.txt
The text was updated successfully, but these errors were encountered:
The comment in your code is worried also about a warning being issued.
I think that the warning is actually OK, since the assignment in the 'if' is actually dead code; in the end the parameter ends up being dead code too.
mihaibudiu
pushed a commit
to mihaibudiu/p4c-clone
that referenced
this issue
Apr 3, 2017
I have tested that the crash is gone, and no warnings or other problems occur, neither with p4test nor with p4c-bm2-ss, on the test program. Closing this issue.
Tested with 2017-Mar-30 version of p4test and p4c-bm2-ss, using attached program. Crash with return statement in action, no crash when the return statement in action is removed. P4_16 spec explicitly mentions allowing return statements in controls and actions. I found several test cases in p4c/testdata/p4_16_samples with return statements in controls, but none with return statements in actions.
crash-for-return-in-action.p4.txt
The text was updated successfully, but these errors were encountered: