comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: GNAT CE 2020 : error when using anon access to subprogram inside protected !?
Date: Tue, 2 Jun 2020 16:55:41 +0200
Date: 2020-06-02T16:55:41+02:00	[thread overview]
Message-ID: <rb5p9a$1u5k$1@gioia.aioe.org> (raw)
In-Reply-To: lytuztr0t1.fsf@pushface.org

On 02/06/2020 16:37, Simon Wright wrote:
> "J-P. Rosen" <rosen@adalog.fr> writes:
> 
>> Le 02/06/2020 à 11:46, Jérôme Haguet a écrit :
>>> pb20200602.adb:27:18: subprogram "Do_On_Item" has wrong convention
>>> pb20200602.adb:27:18: does not match access to subprogram declared at line 7
>>>
>>>
>> shouldn't it be access protected procedure ?
> 
> I wondered that; now both GCC 10 and GNAT CE 2020 complain!

Though GCC 10 still does not complain about anonymous access to X'Access 
comparisons, what GNAT CE 2020 does. It seems that this change did not 
hit GCC 10, yet. That will break a lot of code...

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de

  reply	other threads:[~2020-06-02 14:55 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
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 [this message]
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