From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.5-pre1 Path: eternal-september.org!reader02.eternal-september.org!feeder1.feed.usenet.farm!feed.usenet.farm!aioe.org!yy9MKEJN2ULhWGfnfq4v5w.user.gioia.aioe.org.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Compiler stuck on Big_Integer array initialisation Date: Fri, 23 Apr 2021 07:37:33 +0100 Organization: Aioe.org NNTP Server Message-ID: References: <12e10ca5-d23c-40b3-80ea-37367072310cn@googlegroups.com> NNTP-Posting-Host: yy9MKEJN2ULhWGfnfq4v5w.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain X-Complaints-To: abuse@aioe.org User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (darwin) Cancel-Lock: sha1:yi13H7ZTkTubkIrhZa5V8ywymVM= X-Notice: Filtered by postfilter v. 0.9.2 Xref: reader02.eternal-september.org comp.lang.ada:61899 List-Id: Jesper Quorning writes: > CE2020 GNAT on macOS gets stuck on the following code: > > with Ada.Numerics.Big_Numbers.Big_Integers; > use Ada.Numerics.Big_Numbers.Big_Integers; > procedure Stuck is > A : array (0 .. 9) of Big_Integer := (others => 0); -- Stuck > begin > null; > end Stuck; > > $ gnatmake -gnat2020 stuck.adb > > The array initialisation (others =>0) is the problem. When I changed > it to (0 => 0, others => 0) it compiles. FSF GCC 11.0.1 20210331 crashes (internal compiler error). Both this and GNAT CE 2020 are OK with (others => Big_Integer'(0)).