comp.lang.ada
 help / color / mirror / Atom feed
From: Stephen Leake <stephen_leake@stephe-leake.org>
Subject: Re: 'for cursor in container.first loop' bug?
Date: Fri, 29 Aug 2014 09:03:54 -0500
Date: 2014-08-29T09:03:54-05:00	[thread overview]
Message-ID: <85ha0vxuid.fsf@stephe-leake.org> (raw)
In-Reply-To: lyfvggibpz.fsf@pushface.org

Simon Wright <simon@pushface.org> writes:

> While scratching my head over 5.5.2 Generalized Loop Iteration, I looked
> at A.18.32 Example of Container Use[1] and tried compiling with GNAT GPL
> 2014 and GCC 4.9.0. The full example compiled fine, but when I attempted
> the substitution in (29) this happened:
>
>     65.          for C in G (Next).Iterate loop
>     66.             declare
>     67.                E : Edge renames G (Next)(C).all;
>                                         |
>         >>> access type required in prefix of explicit dereference

This should be:

               E : Edge renames Element (C);

Randy, can you take it from here, or do we need to submit an Ada
Comment?

-- 
-- Stephe


      parent reply	other threads:[~2014-08-29 14:03 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-28 17:56 'for cursor in container.first loop' bug? Stephen Leake
2014-08-28 19:56 ` Randy Brukardt
2014-08-29 13:52   ` Stephen Leake
2014-08-28 20:46 ` Simon Wright
2014-08-29  3:16   ` Randy Brukardt
2014-08-29 14:03   ` Stephen Leake [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