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
I was fuzzing integer types for a bit. The attached program crashes the type checker.
I also do not know if this is a legal construct, is it allowed to define a read-only parameter with type InfInt?
I believe the compiler should give an error for this program, because type int is only allowed in places of a P4_16 program where it is limited to compile-time known values, and even though this particular program only ever calls the actions with those type int parameters with compile-time known values, I think that the intent is that the only kinds of parameters that can be type int are ones that the language always limits to compile-time known values, e.g. to constructor parameters for controls, parsers, and extern objects.
Even if I am correct that this program should cause an error, it should ideally not cause the compiler to crash as it does in my attempt to compiler it with this version of p4c:
New week, new bugs!
I was fuzzing integer types for a bit. The attached program crashes the type checker.
I also do not know if this is a legal construct, is it allowed to define a read-only parameter with type
InfInt
?type_checking_crash.p4.txt
The text was updated successfully, but these errors were encountered: