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

Transitive inclusion of sequences breaks default instantiation #536

Closed
senier opened this issue Jan 2, 2021 · 0 comments · Fixed by #537
Closed

Transitive inclusion of sequences breaks default instantiation #536

senier opened this issue Jan 2, 2021 · 0 comments · Fixed by #537
Assignees
Labels
bug generator Related to generator package (SPARK code generation)

Comments

@senier
Copy link
Member

senier commented Jan 2, 2021

The following reproducer

package Test is

   type U8  is mod 2**8;

   type M1 is
      message
         F1 : U8;
         F2 : Opaque with Size => F1 * 8;
      end message;
   type M1S is array of M1;

   type M2 is
      message
         F1 : U8;
         F2 : M1S with Size => F1 * 8;
      end message;

   type M3 is
      message
         F1 : M2;
         F2 : U8;
         F3 : M1S with Size => F2 * 8;
      end message;

end Test;

creates uncompilable code:

rflx-test-m3.ads:16:83: unmatched actual in instantiation of "Generic_M3" declared at rflx-test-generic_m3.ads:17                                                            
gprbuild: *** compilation phase failed
@senier senier created this issue from a note in RecordFlux 0.5 (To do) Jan 2, 2021
@senier senier added bug generator Related to generator package (SPARK code generation) labels Jan 2, 2021
senier pushed a commit that referenced this issue Jan 2, 2021
@senier senier moved this from To do to In progress in RecordFlux 0.5 Jan 2, 2021
@senier senier self-assigned this Jan 2, 2021
@senier senier moved this from In progress to Done in RecordFlux 0.5 Jan 2, 2021
RecordFlux 0.5 automation moved this from Done to Merged Jan 4, 2021
senier pushed a commit that referenced this issue Jan 4, 2021
@treiher treiher mentioned this issue Aug 4, 2021
9 tasks
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
RecordFlux 0.5
  
Merged
Development

Successfully merging a pull request may close this issue.

1 participant