comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: Re: GNAT CE 2020 : error when using anon access to subprogram inside protected !?
Date: Wed, 03 Jun 2020 07:36:28 +0100
Date: 2020-06-03T07:36:28+01:00	[thread overview]
Message-ID: <lyo8q03bbn.fsf@pushface.org> (raw)
In-Reply-To: lyzh9lr7wq.fsf@pushface.org

Simon Wright <simon@pushface.org> writes:

> I'm amazed that you can declare Walker inside the PO!

9.4(8) allows this. It's always been a gripe of mine that you can't
declare objects (let alone types!) inside a PO's body.

> CE 2020 will compile this without complaint if you move Walker outside
> the PO.

I think that GNAT has become confused about Walker's status: it is a
subprogram_body, but because it's inside a PO it's also a
protected_operation_item.

  reply	other threads:[~2020-06-03  6:36 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-02  9:46 GNAT CE 2020 : error when using anon access to subprogram inside protected !? Jérôme Haguet
2020-06-02 12:04 ` Simon Wright
2020-06-03  6:36   ` Simon Wright [this message]
2020-06-03  9:54     ` J-P. Rosen
2020-06-02 13:51 ` J-P. Rosen
2020-06-02 14:37   ` Simon Wright
2020-06-02 14:55     ` Dmitry A. Kazakov
2020-06-02 18:02   ` AdaMagica
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox