You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
packageTestistype Length ismod2 ** 8;
type Elems isrange0 .. 1with Size => 8;
type Data is
message
Length : Length;
Value : Opaque
with Size => 8 * Length;
endmessage;
type Message (L : Length) is
message
Elems : Elems;
Data : Opaque
with Size => 8 * L * Elems;
endmessage;
generic
session S with
Initial => Init,
Final => Done
is
M : Message;
D : Data;
E : Elems;
begin
state Init
isbegin
M := Message'(L => 64,
Elems => E,
Data => D.Value);
transition
goto Done
exceptiongoto Done
endInit;
state Done isnull state;
endS;
endTest;
gprbuild -P buildCompile [Ada] rflx-rflx_builtin_types-conversions.ads [Ada] rflx-test-s_allocator.adb [Ada] rflx-test-s.adbrflx-test-s.adb:27:147: error: value not in range of type "Elems" defined at rflx-test.ads:44rflx-test-s.adb:27:147: error: static expression fails Constraint_Checkrflx-test-s.adb:28:169: error: value not in range of type "Elems" defined at rflx-test.ads:44rflx-test-s.adb:28:169: error: static expression fails Constraint_Checkgprbuild: *** compilation phase failedmake: *** [Makefile:5: all] Error 4
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: