From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: bug or feature Date: Mon, 06 Oct 2014 18:48:58 +0100 Organization: A noiseless patient Spider Message-ID: References: <136dc796-8f60-4fc0-a2f8-70e0ca24c9f1@googlegroups.com> <85ppf5xv8c.fsf@stephe-leake.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx05.eternal-september.org; posting-host="865ecc8333c04b7dc8d5f87fc772110b"; logging-data="11965"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/2gwVHMZESEfRu5ALJejcIXxeGNuX0ac0=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (darwin) Cancel-Lock: sha1:kPjVdAxeRXOwHHktB4i8wP+jqzU= sha1:df7VTOOvxEnVRea0nrgOKFOnYLs= Xref: news.eternal-september.org comp.lang.ada:22150 Date: 2014-10-06T18:48:58+01:00 List-Id: Stephen Leake writes: > Simon Wright writes: > >> Looks like a regression. >> >> I tried this compilable version of your code >> >> >> and it fails as you say with GNAT GPL 2014 and FSF GCC 4.9.0. However, >> GNAT GPL 2013 and FSF GCC 4.8.1 are both happy. > > Gnat 7.2.1 gives the error. > > In general, I've found that GNAT gets more precise as time goes on. So I > suspect this is a legitimate error, the check for which was recently > implemented. > > On the other hand, the generalized iterator code is all fairly new, so > it could also be that something they changed broke this. > > Definitely worth reporting. AdaCore say "This works properly on the development version of GNAT."