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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Received: by 2002:a6b:b281:: with SMTP id b123mr21265645iof.39.1550577190607; Tue, 19 Feb 2019 03:53:10 -0800 (PST) X-Received: by 2002:aca:5592:: with SMTP id j140mr316192oib.5.1550577190386; Tue, 19 Feb 2019 03:53:10 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!news.uzoreto.com!2.eu.feeder.erje.net!4.us.feeder.erje.net!feeder.erje.net!weretis.net!feeder6.news.weretis.net!feeder.usenetexpress.com!feeder-in1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!y42no112921ita.0!news-out.google.com!d79ni139itc.0!nntp.google.com!y42no112919ita.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 19 Feb 2019 03:53:10 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=176.11.20.68; posting-account=uulyKwoAAAA86DO0ODu--rZtbje8Sytn NNTP-Posting-Host: 176.11.20.68 References: <7c20337f-7936-401b-bbf2-a4a7c261825b@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <41a3d8d4-5fd8-4649-a0f8-6e20a453a536@googlegroups.com> Subject: Re: Private extension of a synchronized interface From: Egil H H Injection-Date: Tue, 19 Feb 2019 11:53:10 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader01.eternal-september.org comp.lang.ada:55582 Date: 2019-02-19T03:53:10-08:00 List-Id: On Tuesday, February 19, 2019 at 12:29:23 PM UTC+1, Simon Wright wrote: > Egil H H writes: > > > On Monday, February 18, 2019 at 11:35:15 PM UTC+1, Randy Brukardt wrote: > >> > >> This appears to be a GNAT bug, although I'm not 100% certain. > > > > There's definitely at least one GNAT bug here. > > Forcing a dispatching call on the interface (as suggested by Simon) works, > > Example.An_Interface'Class(v).p1; > > > > but forcing a dispatching call on the private extension, does not > > Example.Instance'Class(v).p1; > > > > It compiles and runs, but seems to call a null body... > > Worse than that: it leaves the PO mangled! GCC 9.0.0 (which is built > with internal checks enabled: released versions aren't) raises an ICE > (internal compiler error), > > +===========================GNAT BUG DETECTED==============================+ > | 9.0.0 20190115 (experimental) (x86_64-apple-darwin15) Assert_Failure sem_disp.adb:491| > > so the released version (CE, 8) rambles past this error, resulting in > the next call saying > > raised PROGRAM_ERROR : > System.Tasking.Protected_Objects.Entries.Lock_Entries_With_Status: > protected object is finalized > > Will report. Oh, that's worse, indeed. I didn't investigate that far. -- ~egilhh