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.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,3162283879cdc5f2 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,UTF8 X-Received: by 10.180.11.232 with SMTP id t8mr726036wib.3.1369279590629; Wed, 22 May 2013 20:26:30 -0700 (PDT) Path: fw11ni1150wic.0!nntp.google.com!feeder1.cambriumusenet.nl!feed.tweaknews.nl!193.141.40.65.MISMATCH!npeer.de.kpn-eurorings.net!npeer-ng0.de.kpn-eurorings.net!border2.nntp.ams2.giganews.com!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!news.panservice.it!aioe.org!.POSTED!not-for-mail From: =?utf-8?Q?Yannick_Duch=C3=AAne_=28Hibou57?= =?utf-8?Q?=29?= Newsgroups: comp.lang.ada Subject: Re: Type vs subtype about visibility of parent's private full definition Date: Thu, 16 May 2013 22:25:12 +0200 Organization: Ada @ Home Message-ID: References: NNTP-Posting-Host: Sv6Cuze0X27eeIhEzO/D/A.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: Opera Mail/12.15 (Linux) X-Notice: Filtered by postfilter v. 0.8.2 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes Content-Transfer-Encoding: Quoted-Printable Date: 2013-05-16T22:25:12+02:00 List-Id: Le Thu, 16 May 2013 17:29:13 +0200, Simon Wright a = = =C3=A9crit: > if I write instead of Parent_Type and > Instance_Type above > > type Instance_Type is > new Parents.Instance_Type > (Discriminant =3D> 2); > > or > > subtype Instance_Type is > Parents.Instance_Type > (Discriminant =3D> 2); > > it compiles OK. The first does not compile for me with GNAT from GCC 4.8, it fails with = = the message given in the original message, which is =E2=80=9Cno selector= "Value" = for private type derived from "Instance_Type"=E2=80=9D. What GNAT flavour did you tried it with? GNAT Pro or GPL or FSF? -- = =E2=80=9CSyntactic sugar causes cancer of the semi-colons.=E2=80=9D [1] =E2=80=9CStructured Programming supports the law of the excluded muddle.= =E2=80=9D [1] [1]: Epigrams on Programming =E2=80=94 Alan J. =E2=80=94 P. Yale Univers= ity