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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,6339fea48a1b8cda X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!news.mixmin.net!news2.arglkargh.de!noris.net!nntp.ilk.net!not-for-mail From: Markus Schoepflin Newsgroups: comp.lang.ada Subject: Re: Enumeration representation clause surprise. Date: Wed, 11 Jun 2008 15:48:09 +0200 Organization: Customer of ILK Internet GmbH, Karlsruhe, Germany Message-ID: References: <0cbb6daf-01e9-40f5-855c-4f1d45cb0096@m73g2000hsh.googlegroups.com> <87abhs6qyj.fsf@willow.rfc1149.net> NNTP-Posting-Host: csdc.comsoft.de Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: nntp.ilk.net 1213192089 17772 212.86.205.70 (11 Jun 2008 13:48:09 GMT) X-Complaints-To: usenet@ilk.net NNTP-Posting-Date: Wed, 11 Jun 2008 13:48:09 +0000 (UTC) User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) In-Reply-To: <87abhs6qyj.fsf@willow.rfc1149.net> Xref: g2news1.google.com comp.lang.ada:649 Date: 2008-06-11T15:48:09+02:00 List-Id: Samuel Tardieu wrote: > Markus> This is exactly my point. I would have expected a compile time error > Markus> for this impossible request. > > Markus> Representation clauses are (amongst other) meant to specify specific > Markus> binary layouts for interfacing with the external world. Or am I > Markus> mistaken here? > > I can't find anything in RM chapter 13 which either forbids or allows > such a behaviour. I will submit a patch for GNAT which gives a new > warning for this case: > > 11. A1 at 0 range 0 .. 0; -- (*) > | > >>> warning: component representation will be biased > > Sam That would be extremely helpful! Thanks, Markus