We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have a question about StructInitializers in Mux expressions:
control ingress(inout Headers h) { apply { h.eth_hdr = h.eth_hdr.eth_type == 1 ? {48w1, 48w1, 16w1} : {48w2, 48w2, 16w2}; } }
Is this legal? Currently, I get the error:
mux_validity.p4(29): [--Werror=type-error] error: AssignmentStatement: Cannot unify tuple_0 wi th ethernet_t h.eth_hdr = h.eth_hdr.eth_type == 1 ? {48w1, 48w1, 16w1} : {48w2, 48w2, 16w2};
mux_initializer.p4.txt
The text was updated successfully, but these errors were encountered:
mihaibudiu
Successfully merging a pull request may close this issue.
I have a question about StructInitializers in Mux expressions:
Is this legal? Currently, I get the error:
mux_initializer.p4.txt
The text was updated successfully, but these errors were encountered: