From: Bill Findlay <yaldnif.w@blueyonder.co.uk>
Subject: Re: GNAT GPL 2014
Date: Tue, 13 May 2014 23:04:15 +0100
Date: 2014-05-13T23:04:15+01:00 [thread overview]
Message-ID: <CF98556F.4752E%yaldnif.w@blueyonder.co.uk> (raw)
In-Reply-To: 9b878576-efa3-42ca-9614-ef67713ecd78@googlegroups.com
On 13/05/2014 17:48, in article
9b878576-efa3-42ca-9614-ef67713ecd78@googlegroups.com, "Martin"
<martin@thedowies.com> wrote:
> On Tuesday, May 6, 2014 9:13:13 PM UTC+1, Martin wrote:
>> http://libre.adacore.com teasing with a 2014 banner but no sign of the 2014
>> configurations yet on the download page...
>
> And it's now out!! Form an orderly queue... :-)
Type resolution in conditional expressions by GNAT GPL 2012/2013 was not all
it should have been. E.g. I had to make the second 0 into a qualified
expression in:
function XR (X : M.i04)
return M.i64 is
begin
return (if X = 0 then M.i64'(0) else GR(X));
end XR;
because GNAT could not otherwise deduce its intended type, even though GR(X)
and the expected return type are both M.i64.
I am happy to say this is now fixed in GNAT GPL 2014.
But, I still have to write this:
for s in slice'Range loop
exit when slice(s) = all_blanks_code;
h := rotate_left(h, 2) + slice(s);
end loop;
To avoid this:
for s of slice loop
exit when s = all_blanks_code;
|
>>> warning: variable "s" is not modified in loop body
>>> warning: possible infinite loop
h := rotate_left(h, 2) + s;
end loop;
So that bug remains.
--
Bill Findlay
with blueyonder.co.uk;
use surname & forename;
next prev parent reply other threads:[~2014-05-13 22:04 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-06 20:13 GNAT GPL 2014 Martin
2014-05-13 16:48 ` Martin
2014-05-13 17:08 ` Dan'l Miller
2014-05-13 19:25 ` Simon Wright
2014-05-14 5:59 ` Dan'l Miller
2014-05-13 22:04 ` Bill Findlay [this message]
2014-05-13 22:15 ` Martin
2014-05-13 22:22 ` Martin
2014-05-15 0:35 ` Jerry
2014-05-14 14:03 ` Bill Findlay
2014-05-13 17:05 ` Martin
2014-05-13 19:08 ` Rego, P.
2014-05-20 17:41 ` Luke A. Guest
2014-05-13 20:10 ` dontspam365
2014-05-17 20:13 ` Charly
2014-05-18 18:33 ` Martin
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox