--  An array whose component subtype has bounds known only when its type is elaborated: the
--  bounds are held then, and after a loop that writes the array every component still has
--  them, which the prover is told (D262).
with Ada.Text_IO; use Ada.Text_IO;
procedure Main is
   function Ident (X : Integer) return Integer is (X);
   N : Integer := Ident (3);
   type Row is array (1 .. 4) of String (N .. 5);
   E : Row;
begin
   N := 10;   --  the type's bounds were fixed when it was elaborated
   for K in E'Range loop
      E (K) := "ABC";
   end loop;
   pragma Assert (E (1)'First = 3 and E (4)'Last = 5);
   Put_Line (E (2) & Integer'Image (E (3)'First));
end Main;
