Skip to content
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

Compilation fails due to range integer with single value #312

Closed
treiher opened this issue Jul 1, 2020 · 0 comments · Fixed by #318
Closed

Compilation fails due to range integer with single value #312

treiher opened this issue Jul 1, 2020 · 0 comments · Fixed by #318
Assignees
Labels
bug generator Related to generator package (SPARK code generation)

Comments

@treiher
Copy link
Collaborator

treiher commented Jul 1, 2020

package Test is

    type B is range 1 .. 1 with Size => 1;

    type D is
       message
          A : B
             then C
                with Length => A * 8;
          C : Opaque;
       end message;

    type E is null message;

    for D use (C => E);

end Test;
rflx-test.ads:34:11: warning: can never be greater than, could replace by "=" [-gnatwc]

   compilation of rflx-test.ads failed
 33    function Valid (Val : RFLX.Test.B_Base) return Boolean is
 34      (Val >= 1);
@treiher treiher added bug generator Related to generator package (SPARK code generation) labels Jul 1, 2020
@treiher treiher added this to To do in RecordFlux 0.4.1 via automation Jul 1, 2020
@treiher treiher self-assigned this Jul 1, 2020
@treiher treiher moved this from To do to In progress in RecordFlux 0.4.1 Jul 1, 2020
@treiher treiher changed the title Compilation fails due to range integer with single value Compilation fails due to specific value range of range integer Jul 1, 2020
@treiher treiher changed the title Compilation fails due to specific value range of range integer Compilation fails due to range integer with single value Jul 1, 2020
@treiher treiher mentioned this issue Jul 1, 2020
26 tasks
treiher added a commit that referenced this issue Jul 2, 2020
treiher added a commit that referenced this issue Jul 3, 2020
RecordFlux 0.4.1 automation moved this from In progress to Done Jul 3, 2020
treiher added a commit that referenced this issue Jul 3, 2020
treiher added a commit that referenced this issue Jul 3, 2020
@treiher treiher mentioned this issue Jul 14, 2020
4 tasks
treiher added a commit that referenced this issue Jul 23, 2020
treiher added a commit that referenced this issue Jul 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug generator Related to generator package (SPARK code generation)
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

1 participant