-
-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Check enum label value #784
Comments
For ease of checking enum label values, how about the following enum value rule?
|
I think this is a place where we'd want to follow the SV LRM very closely. An enum variable or identifier will be automatically cast to a numerical type if used in a numeric expression. Looking at the LRM, there are a number of things we still need to check for.
Value encodings are determined is as follows: If no value is provided, then the first defined element is given value |
There is the limitation below for enum lebel values.
Need to check if this limitation is satisfied.
From IEEE 1800-2023 6.19.2 Enumerated type ranges
Originally posted by @taichi-ishitani in #771 (comment)
The text was updated successfully, but these errors were encountered: