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-Google-Thread: 103376,799bdb14b530ce1d X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.66.90.102 with SMTP id bv6mr2399880pab.34.1349475597127; Fri, 05 Oct 2012 15:19:57 -0700 (PDT) Received: by 10.68.216.202 with SMTP id os10mr1693244pbc.17.1349475597111; Fri, 05 Oct 2012 15:19:57 -0700 (PDT) Path: t10ni23613332pbh.0!nntp.google.com!kt20no11356230pbb.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 5 Oct 2012 15:19:56 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=69.20.190.126; posting-account=lJ3JNwoAAAAQfH3VV9vttJLkThaxtTfC NNTP-Posting-Host: 69.20.190.126 References: <99b6ed38-0a44-4649-82b7-0b724fa5e68f@googlegroups.com> <5e6b8e61-50c5-4398-9407-60276a070f4f@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <0135d0d3-3dd3-4b75-a639-76cf93975eb2@googlegroups.com> Subject: Re: Odd subtyping error. From: Shark8 Injection-Date: Fri, 05 Oct 2012 22:19:57 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Date: 2012-10-05T15:19:56-07:00 List-Id: On Friday, October 5, 2012 4:11:06 PM UTC-6, Adam Beneschan wrote: >=20 > Ah, "the rest of the story"! The size clause isn't the problem. The pro= blem is that referring to Item_2 and Item_4 in the declaration of Derived_T= ype freezes Base_Type, and you can't add any more representation informatio= n after that. That makes "For Base_Type Use ..." illegal. If the error me= ssages in your original case pointed you to the wrong line numbers, that's = something you can complain to the GNAT folks about. But the error is legit= imate, at least in your reduced source. Hm, why does it force freezing? Is there a way to force defferment, or flag that there will be a representa= tion-clause, maybe with an aspect clause " with Representation, Size =3D> E= num'Size"