From: Simon Wright <simon@pogner.demon.co.uk>
Subject: Re: Creation of storage pools
Date: 1999/06/05
Date: 1999-06-05T00:00:00+00:00 [thread overview]
Message-ID: <x7vemjri42j.fsf@pogner.moho> (raw)
In-Reply-To: 374B411C.5EA8@sydney.gecm.com
Graeme Perkes <graeme.perkes@sydney.gecm.com> writes:
> I defined an unconstrained array of POOL_PTRs:
>
> type POOL_LIST is array ( INTEGER range <> ) of POOL_PTR;
>
> I defined a pointer to this type to allow it to be easily
> passed to subprograms:
>
> type POOL_CFG_PTR is access all POOL_LIST;
>
> Another package is initialised with a pools list:
>
> -- STORAGE_POOLS_LIST is populated by an initialisation procedure:
>
> MY_POOL : POOL_LIST.POOL_PTR := STORAGE_POOLS_LIST(I);
^^^^^^^^^
(GNAT 3.11p)
When I compile an (edited) version with this error, I get
use_pools.adb:5:47: incorrect reference to a Storage Pool
pools.ads:37:14: invalid prefix in selected component "Pool_List"
Removing the error doesn't help.
Writing this works:
with Pools;
procedure Use_Pools is
P : Pools.User_Pool renames Pools.My_Pool.all;
type Int_Acc is access Integer;
for Int_Acc'Storage_Pool use P;
begin
null;
end Use_Pools;
Looks like time to submit a report (Graeme, I guess you _are_
supported? since you're using 3.11b2?)
next prev parent reply other threads:[~1999-06-05 0:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-05-26 0:00 Creation of storage pools Graeme Perkes
1999-06-04 0:00 ` Matthew Heaney
1999-06-04 0:00 ` Tucker Taft
1999-06-05 0:00 ` Simon Wright [this message]
1999-06-07 0:00 ` Graeme Perkes
1999-06-07 0:00 ` adam
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox