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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,9b7d3a51d0d8b6ee X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!tiscali!newsfeed1.ip.tiscali.net!feeder1-2.proxad.net!proxad.net!feeder2-2.proxad.net!newsfeed.arcor.de!newsspool2.arcor-online.net!news.arcor.de.POSTED!not-for-mail Date: Wed, 19 Nov 2008 20:19:33 +0100 From: Georg Bauhaus Reply-To: rm.tsoh+bauhaus@maps.futureapps.de User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Extending discriminant types References: <20081115101632.5f98c596@cube.tz.axivion.com> <93396f2b-e80b-4c19-bbb2-e9381b32f2ea@b38g2000prf.googlegroups.com> In-Reply-To: <93396f2b-e80b-4c19-bbb2-e9381b32f2ea@b38g2000prf.googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Message-ID: <492466c8$0$31344$9b4e6d93@newsspool4.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 19 Nov 2008 20:19:36 CET NNTP-Posting-Host: 9f9d0565.newsspool4.arcor-online.net X-Trace: DXC=RT];^35FN66n`gW2MTm]<34IUK christoph.grein@eurocopter.com wrote: > On 19 Nov., 10:49, a...@anon.org (anon) wrote: >> Var1 : Base_Access := new Child'Base(K => B); -- Just for Adam, this works >> >> Var2 : Base_Access := new Child'Base(K => A); > > I don't know which compiler anon uses, but this is wrong: RM K(17). > > GNAT Pro 6.0.1 rejects this code. FWIW, another, unrelated compiler says that the "the prefix to the BASE attribute must be a scalar subtype"