vyper Version (output of vyper --version OR linkable commit hash vyperlang/vyper@): vyperlang/vyper@b43fface148b45cbd2c90b5d24f77398a63745b5
Issue Description
In the case the value to be clamped is an instance of a Flag type having
256 members, clamp_basetype() will make the compiler panic as the case
is not handled. Note that in practice, the function is currently only
called with Flag types needing clamping and this case should not be
reachable.
Version Information
vyper --version
OR linkable commit hash vyperlang/vyper@Issue Description
In the case the value to be clamped is an instance of a Flag type having 256 members,
clamp_basetype()
will make the compiler panic as the case is not handled. Note that in practice, the function is currently only called with Flag types needing clamping and this case should not be reachable.