with System.Storage_Pools; with System.Storage_Elements; package Test_247016 is type Storage_Pool_Type is new System.Storage_Pools.Root_Storage_Pool with null record; procedure Allocate (Pool : in out Storage_Pool_Type; Storage_Address : out System.Address; Size_In_Storage_Elements : in System.Storage_Elements.Storage_Count; Alignment : in System.Storage_Elements.Storage_Count); procedure Deallocate (Pool : in out Storage_Pool_Type; Storage_Address : in System.Address; Size_In_Storage_Elements : in System.Storage_Elements.Storage_Count; Alignment : in System.Storage_Elements.Storage_Count); function Storage_Size (Pool : in Storage_Pool_Type) return System.Storage_Elements.Storage_Count; x1: Storage_Pool_Type; type T1 is access integer; for T1'Storage_Pool use System.Storage_Pools.Root_Storage_Pool (x1); end Test_247016; The compiler says incorrectly: test_247016.ads:26:48: incorrect reference to a Storage Pool gnatmake: "test_247016.ads" compilation error
I get this on the mainline): cannot generate code for file test_247016.ads (package spec) to check package spec for errors, use -gnatc (I don't know gnat/Ada that much, does that mean this code is accepted?)
If that's the only error you are getting, and compiling the spec with -gnatc gives no error, then indeed the problem is fixed. Arno