-
-
Notifications
You must be signed in to change notification settings - Fork 83
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
Using Constants for Attribute Indexing #862
Comments
Implicit conversions only happen in the other direction (universal to other integer type). Also a constant is only globally- rather than locally-static. |
OK that's not true in this case as the initialiser is a locally static expression. |
Try using |
That's a cute trick, but do you think this should be necessary given that Questa and Riviera both don't complain, or maybe something to be able to do with |
I made it a warning in |
Trying the following code:
I get the following error with nvc:
Questa and Riviera both don't even give a warning about this. The constant should be able to be internally cast /promoted to a universal_integer, right?
The text was updated successfully, but these errors were encountered: