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
Ada only allows literal values up to 2^63 - 1, even if the size of the enum is 64 bit.
2^63 - 1
package Test is type A is (B => 9223372036854775808) with Size => 64; -- 2**63 = 9223372036854775808 end Test;
rflx-test.ads:20:20: error: value outside permitted range compilation of rflx-test.ads failed
17 type A is (B) with 18 Size => 19 64; 20 for A use (B => 9223372036854775808);
The text was updated successfully, but these errors were encountered:
Prevent enum value outside permitted range in SPARK code
40d7120
Ref. #313
75b39e9
5b86c63
treiher
Successfully merging a pull request may close this issue.
Ada only allows literal values up to
2^63 - 1
, even if the size of the enum is 64 bit.The text was updated successfully, but these errors were encountered: