Re: GNAT GPL - Anonymous Access Type



"Britt Snodgrass" <britt.snodgrass@xxxxxxxxx> writes:

> It works with GNATMAKE Pro 5.04w (20050907-34)
> but not with GNATMAKE Pro 5.03a (20050114-34), both tried with -gnat05,
> so it looks like a recent addition to GNATPRO.

With 4.0.0, I get

grendel:~/cf simon$ gnatgcc -c -gnatc ttt.ads
ttt.ads:5:15: generalized use of anonymous access types is an Ada 2005 extension
ttt.ads:5:15: unit must be compiled with -gnat05 switch

but disappointingly

grendel:~/cf simon$ gnatgcc -c -gnatc -gnat05 ttt.ads
ttt.ads:5:24: type declaration cannot refer to itself
.