--  A constrained type's bounds known only when it is elaborated, through its attributes
--  (C36204B) and a rectangular aggregate passed to a parameter of it, which slides into them
--  (C43205G), D192.
with Ada.Text_IO; use Ada.Text_IO;
procedure Main is
   function Id (X : Integer) return Integer is (X);
   type Arr1 is array (Integer range Id (1) .. Id (10)) of Integer;
   type Ptr1 is access Arr1;
   PT1 : Ptr1 := new Arr1'(Arr1'Range => 0);
   A : constant Arr1 := (Arr1'Range => 5);
   B : Arr1;
   type Grid is array (11 .. 12, Id (10) .. 11) of Integer;
   procedure Show (G : Grid) is
   begin
      Put_Line (Integer'Image (G'First (1)) & Integer'Image (G'First (2)) & Integer'Image (G'Last (2)) & Integer'Image (G (12, 10)));
   end Show;
begin
   B (1) := 0;
   Put_Line (Integer'Image (PT1'First) & Integer'Image (PT1'Last) & Integer'Image (A'First) & Integer'Image (A'Last) & Integer'Image (Arr1'First) & Integer'Image (B'First) & Integer'Image (B'Length));
   Show (((1, 2), (3, 4)));
end Main;
