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
From the log it seems that T is actually inferred to be int.
Where 'T' is bound to 'int'
So this might be an error in processing return type of generic functions. Maybe it was not tested because it is hard to write useful generic functions in P4 (see e.g. #5067), except for extern functions.
p4c rejects issue2260-1.p4 with this error log.
However, shouldn't it infer
int
as the type argument for callingf
? i.e.,The text was updated successfully, but these errors were encountered: