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!news1.google.com!news2.google.com!news.glorb.com!feeder.erje.net!fdn.fr!club-internet.fr!feedme-small.clubint.net!proxad.net!feeder1-1.proxad.net!cleanfeed1-a.proxad.net!nnrp6-1.free.fr!not-for-mail Newsgroups: comp.lang.ada Subject: Re: Enumeration representation clause surprise. References: <0cbb6daf-01e9-40f5-855c-4f1d45cb0096@m73g2000hsh.googlegroups.com> From: Samuel Tardieu Date: Wed, 11 Jun 2008 15:28:36 +0200 Message-ID: <87abhs6qyj.fsf@willow.rfc1149.net> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) Cancel-Lock: sha1:/YEDzGWfULBYVfnNr57HdyT7PTo= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Leafnode-NNTP-Posting-Host: 81.56.47.149 Organization: Guest of ProXad - France NNTP-Posting-Date: 11 Jun 2008 15:30:01 MEST NNTP-Posting-Host: 88.191.14.223 X-Trace: 1213191001 news-2.free.fr 12003 88.191.14.223:38288 X-Complaints-To: abuse@proxad.net Xref: g2news1.google.com comp.lang.ada:648 Date: 2008-06-11T15:30:01+02:00 List-Id: 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