Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix type deduction for expressions when importing JSON #890

Merged

Conversation

antoninbas
Copy link
Member

A recent fix for a separate issue
(#888) exposed a separate
bug: the type of expressions for which the top-level operator was
"access_field" was not deduced properly (set to UNKNOWN instead of
DATA), which caused bmv2 to assert when building the Action object.

The same issue existed for "access_union_header", which is an operator
introduced more recently (and possibly not used by p4c yet).

Fixes #889

A recent fix for a separate issue
(#888) exposed a separate
bug: the type of expressions for which the top-level operator was
"access_field" was not deduced properly (set to UNKNOWN instead of
DATA), which caused bmv2 to assert when building the Action object.

The same issue existed for "access_union_header", which is an operator
introduced more recently (and possibly not used by p4c yet).

Fixes #889
@antoninbas antoninbas force-pushed the antonin/fix-type-deduction-for-expressions-in-json-importer branch from e2f46e4 to 820bb44 Compare May 11, 2020 17:34
@antoninbas antoninbas merged commit 9a331b9 into master May 11, 2020
@antoninbas antoninbas deleted the antonin/fix-type-deduction-for-expressions-in-json-importer branch May 11, 2020 18:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Does recent behavioral-model change cause p4c tests to fail?
1 participant