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
extern X<T> {}
extern Y {}
control c1(in Y x);
control c2(in X<bit> x);
P4C correctly rejects c1 but not c2.
I noticed this while testing testdata/p4_16_samples/generic.p4 with my front-end which has this bad code in it.
The text was updated successfully, but these errors were encountered:
apinski-cavium
changed the title
Generics extern object allowed to have a direction
Generics extern object incorrectly allowed to have a direction in a control
Dec 18, 2022
Take:
P4C correctly rejects c1 but not c2.
I noticed this while testing testdata/p4_16_samples/generic.p4 with my front-end which has this bad code in it.
The text was updated successfully, but these errors were encountered: