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:2209:: with SMTP id i9-v6mr9481768ioi.138.1526817822293; Sun, 20 May 2018 05:03:42 -0700 (PDT) X-Received: by 2002:aca:d415:: with SMTP id l21-v6mr1043714oig.1.1526817822089; Sun, 20 May 2018 05:03:42 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!news.uzoreto.com!weretis.net!feeder6.news.weretis.net!feeder.usenetexpress.com!feeder-in1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!u74-v6no3513800itb.0!news-out.google.com!f20-v6ni3916itd.0!nntp.google.com!u74-v6no3513794itb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sun, 20 May 2018 05:03:41 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=96.247.198.106; posting-account=QF6XPQoAAABce2NyPxxDAaKdAkN6RgAf NNTP-Posting-Host: 96.247.198.106 References: <4a47e4cd-829c-4451-abf1-82cf60b67706@googlegroups.com> <9cdf04e6-123e-4bd9-b466-77aad00d61bb@googlegroups.com> <62e326e6-dd15-4546-83dc-b1e423327c23@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <78edddfb-056c-413f-b211-212757922b90@googlegroups.com> Subject: Re: Preventing private procedure visibility being made public through extension From: Jere Injection-Date: Sun, 20 May 2018 12:03:42 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader02.eternal-september.org comp.lang.ada:52487 Date: 2018-05-20T05:03:41-07:00 List-Id: On Sunday, May 20, 2018 at 7:22:09 AM UTC-4, Simon Wright wrote: > Simon Wright writes: > > > "Randy Brukardt" writes: > > > >> Ah, a subtype. GNAT has (or had?)a bug having to do with making things > >> visible because of a subtype declaration (I recall someone else > >> running across that and having verified it myself). That's just plain > >> wrong, a subtype has no effect on what's visible in a prefixed call > >> (or anywhere else for that matter, in particular with "use all type"). > >> > >> You ought to have an ambiguity if you tried to call Something in the > >> body of More_Derived, but it should be OK in the main subprogram. > >> > >> I'd skip the subtype and just use the real name of the type. And > >> possibly make a bug report to AdaCore. > >> You could also use a traditional call (More_Derived.Something (M, P);) > >> which would avoid the buggy part of GNAT. > > > > Quite right, Randy (GCC 7.1.0, still; has anyone reported this?) > > I think it must have been reported, because it's fixed in 8.1.0. I ended up reporting this to them sometime shortly after. I'm glad the fix finally made it in!