From: Simon Wright <simon@pushface.org>
Subject: Re: Compiler stuck on Big_Integer array initialisation
Date: Fri, 23 Apr 2021 07:37:33 +0100 [thread overview]
Message-ID: <lyv98d4ic2.fsf@pushface.org> (raw)
In-Reply-To: 12e10ca5-d23c-40b3-80ea-37367072310cn@googlegroups.com
Jesper Quorning <jesper.quorning@gmail.com> 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)).
prev parent reply other threads:[~2021-04-23 6:37 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-14 1:32 Compiler stuck on Big_Integer array initialisation Jesper Quorning
2021-03-14 5:56 ` Per Sandberg
2021-03-14 7:59 ` Emmanuel Briot
2021-04-23 6:37 ` Simon Wright [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox