We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
If an enum-value with a defined type is used in a comparison and that type matches the other side of the comparison, a warning still triggers.
Is it possible to relax the warning for the case of enum-values, or have I missed anything?
slangtest169.sv:12:18: warning: comparison between operands of different types ('int' and 'e_t') [-Wcomparison-mismatch] v.size() == E; ~~~~~~~~ ^~ ~
class C; typedef enum int { A = 0, C = 2, E = 4 } e_t; rand bit v[$]; constraint q { v.size() == E; } endclass
The text was updated successfully, but these errors were encountered:
Done in 4dcf49d
Sorry, something went wrong.
No branches or pull requests
If an enum-value with a defined type is used in a comparison and that type matches the other side of the comparison, a warning still triggers.
Is it possible to relax the warning for the case of enum-values, or have I missed anything?
The text was updated successfully, but these errors were encountered: