Skip to content
This repository has been archived by the owner on Apr 29, 2024. It is now read-only.

The conditional expression of ternary operator does not support action_params #13

Closed
shouxi opened this issue Aug 6, 2016 · 2 comments
Assignees
Labels

Comments

@shouxi
Copy link

shouxi commented Aug 6, 2016

Hi, p4c compiler would yield ERROR: Undeclared identifier xxx, provided the ternary operator uses an action_param (e.g., xxx) in its conditional expression. This seems to be a bug (although easy to avoid by assigning the runtime value to a metadata field and using it for cond expressions instead).

@antoninbas
Copy link
Member

Hi Shouxi,

It would be useful if you could provide a small P4 program to help us reproduce this issue.

Thanks

@shouxi
Copy link
Author

shouxi commented Aug 8, 2016

Hi Antonin,
See test.p4.txt, modified from P4 v1.1 Simple Router.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants