--  A conversion to a constrained array subtype whose bounds are known only at run time
--  slides the components into them and checks the lengths (RM 4.6(37), ACATS C46042A); the
--  value kept its own bounds.
with Ada.Text_IO;
procedure Main is
   function Id (X : Integer) return Integer is (X);
   type Vec is array (Integer range <>) of Integer;
   subtype Ten is Vec (Id (1) .. Id (3));
   A : constant Vec (11 .. 13) := (1, 2, 3);
   procedure Show (V : Vec) is
   begin
      Ada.Text_IO.Put_Line (Integer'Image (V'First) & Integer'Image (V'Last) & Integer'Image (V (V'First)));
   end Show;
begin
   Show (Ten (A));
end Main;
