From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D287E3858C2F; Sat, 2 Jul 2022 11:36:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D287E3858C2F From: "p.p11 at orange dot fr" To: gcc-bugs@gcc.gnu.org Subject: [Bug ada/106168] New: Errors with empty array aggregate. Date: Sat, 02 Jul 2022 11:36:50 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: ada X-Bugzilla-Version: 12.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: p.p11 at orange dot fr X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Jul 2022 11:36:50 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D106168 Bug ID: 106168 Summary: Errors with empty array aggregate. Product: gcc Version: 12.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: ada Assignee: unassigned at gcc dot gnu.org Reporter: p.p11 at orange dot fr Target Milestone: --- Created attachment 53239 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D53239&action=3Dedit Full source code Following the example section of RM Ada 2022 =C2=A7 4.3.3 Array Aggregate, = the empty aggregate is line 8: 3. type Real is digits 8; 4. type Matrix is array (Integer range <>, Integer range <>) of Real; 5.=20 6. -- AARM (Draft 22) Section_4_3_3_Paragraph_47 7.=20=20=20=20 8. Empty_Matrix : constant Matrix :=3D []; -- A matrix without elements GNAT 12.1.0 issues the following errors: % gcc -c -gnat2022 2022/test_20220702_array_agg.adb test_20220702_array_agg.adb:8:38: error: value not in range of type "Standard.Integer" test_20220702_array_agg.adb:8:38: error: static expression fails Constraint_Check=