comp.lang.ada
 help / color / mirror / Atom feed
From: Jesper Quorning <jesper.quorning@gmail.com>
Subject: Compiler stuck on Big_Integer array initialisation
Date: Sat, 13 Mar 2021 17:32:58 -0800 (PST)	[thread overview]
Message-ID: <12e10ca5-d23c-40b3-80ea-37367072310cn@googlegroups.com> (raw)

Hi All

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.

Is the problem reproducable on Linux and Windows compilers?

/Jesper

             reply	other threads:[~2021-03-14  1:32 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-14  1:32 Jesper Quorning [this message]
2021-03-14  5:56 ` Compiler stuck on Big_Integer array initialisation Per Sandberg
2021-03-14  7:59   ` Emmanuel Briot
2021-04-23  6:37 ` Simon Wright
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox