comp.lang.ada
 help / color / mirror / Atom feed
From: Bill Findlay <findlaybill@blueyonder.co.uk>
Subject: Re: ANN: GNAT CE 2021 for Intel macOS
Date: Thu, 17 Jun 2021 19:45:13 +0100	[thread overview]
Message-ID: <0001HW.267BCFB900EACDC870000DFBA38F@news.individual.net> (raw)
In-Reply-To: lytulwzcdy.fsf@pushface.org

On 17 Jun 2021, Simon Wright wrote
(in article <lytulwzcdy.fsf@pushface.org>):

> GNAT CE 2021, built for macOS El Capitan .. Big Sur, at
>
> Sourceforge:
> https://sourceforge.net/projects/gnuada/files/GNAT_GPL%20Mac%20OS%20X/2021-x86
> _64-darwin-bin/ [...]

That's great, thank you Simon.

I did encounter one strange compiler error.
A bit of trivial code that has been passingall
regression tests for a decade suddenly failed thus:

> raised CONSTRAINT_ERROR : erroneous memory access.

(without a line number).

Binary search in my code narrowed it down to this:

> full_ruler : constant String (1 .. 80) := (others =>  '_');
>
> procedure log_rule (start_a_new_line : in Boolean := False;
> iff : in Boolean := True) is
> begin
> if start_a_new_line then cc_list.log_new_line(iff); end if;
> log_line(full_ruler, iff); -- <====== FAILS HERE!
> end log_rule;

If I replace:

log_line(full_ruler, iff);

by:

log_line(String'(1..80 =>  '_'), iff);

the exception goes away!

-- 
Bill Findlay

  reply	other threads:[~2021-06-17 18:45 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-17 16:25 ANN: GNAT CE 2021 for Intel macOS Simon Wright
2021-06-17 18:45 ` Bill Findlay [this message]
2021-08-18 16:11 ` 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