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,f7c38a023cf370dc X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!news1.google.com!news.glorb.com!news-out.readnews.com!news-xxxfer.readnews.com!panix!newsfeed-00.mathworks.com!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: Should representation clauses be complete for each bit? Date: Wed, 20 Jul 2011 17:23:37 -0400 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <73c10395-ec4f-4a02-b0fc-e35bc14424fa@e18g2000vbx.googlegroups.com> <17c212b1-d0a6-498a-a381-71188a67ec65@a10g2000yqn.googlegroups.com> <6666bbe0-8485-4b8d-b077-70ffea630151@l37g2000yqd.googlegroups.com> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: pcls6.std.com 1311197019 4195 192.74.137.71 (20 Jul 2011 21:23:39 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Wed, 20 Jul 2011 21:23:39 +0000 (UTC) User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (irix) Cancel-Lock: sha1:ajzaFnLMgqeMl1+T4pnBnWxjPOA= Xref: g2news2.google.com comp.lang.ada:21221 Date: 2011-07-20T17:23:37-04:00 List-Id: "J-P. Rosen" writes: > Le 20/07/2011 21:14, okellogg a �crit : >> I believe the compiler would warn about incomplete representation at >> T1? >> > > Two useful AdaControl rules: > check representation_clauses (incomplete_layout); > -- some components are missing > > check representation_clauses (non_contiguous_layout); > -- there are gaps in the record > Cool. I think the GNAT pragma matches incomplete_layout, but the other one seems even more useful, to me. - Bob