From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,PLING_QUERY autolearn=no autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!aioe.org!.POSTED.2uCIJahv+a4XEBqttj5Vkw.user.gioia.aioe.org!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: GNAT CE 2020 : error when using anon access to subprogram inside protected !? Date: Tue, 2 Jun 2020 16:55:41 +0200 Organization: Aioe.org NNTP Server Message-ID: References: <73389630-ef9f-4a9a-918e-0ffc89f62e6c@googlegroups.com> NNTP-Posting-Host: 2uCIJahv+a4XEBqttj5Vkw.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.8.1 Content-Language: en-US X-Notice: Filtered by postfilter v. 0.9.2 Xref: reader01.eternal-september.org comp.lang.ada:58938 Date: 2020-06-02T16:55:41+02:00 List-Id: On 02/06/2020 16:37, Simon Wright wrote: > "J-P. Rosen" 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