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
Following code causes an error in the P4-14 to 16 translation.
error: Table V1Table t invoked from two different controls: Apply and Apply
header_type h {
fields {
b : 1;
}
}
metadata h m;
parser start {
return ingress;
}
action x() {}
table t {
actions { x; }
}
control c {
apply(t);
}
control e {
apply(t);
}
control ingress {
c();
}
Question is: what is the right thing for the compiler to do? Should the compiler accept this program and eliminate the control block e that is not invoked anywhere? or should the compiler return an error to the programmer and ask programmer to delete e from source?
The text was updated successfully, but these errors were encountered:
Following code causes an error in the P4-14 to 16 translation.
Question is: what is the right thing for the compiler to do? Should the compiler accept this program and eliminate the control block
e
that is not invoked anywhere? or should the compiler return an error to the programmer and ask programmer to deletee
from source?The text was updated successfully, but these errors were encountered: