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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,d754b1fad3846b22 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-06-06 10:20:41 PST Path: archiver1.google.com!newsfeed.google.com!postnews1.google.com!not-for-mail From: adam@irvine.com (Adam Beneschan) Newsgroups: comp.lang.ada Subject: Re: Calling all language lawyers.... Date: 6 Jun 2001 10:20:41 -0700 Organization: http://groups.google.com/ Message-ID: References: <3B1E34E1.70D8BD0@ftw.rsc.raytheon.com> NNTP-Posting-Host: 63.206.153.98 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 991848041 22991 127.0.0.1 (6 Jun 2001 17:20:41 GMT) X-Complaints-To: groups-support@google.com NNTP-Posting-Date: 6 Jun 2001 17:20:41 GMT Xref: archiver1.google.com comp.lang.ada:8245 Date: 2001-06-06T17:20:41+00:00 List-Id: Wes Groleau wrote in message news:<3B1E34E1.70D8BD0@ftw.rsc.raytheon.com>... > Is there anything anywhere that prohibits using a subtype > in pragma Convention? I've dug around in Annex B in the > RM & AARM and found no such language. (Nor did I find any > requiring it to be supported.) > > I'm porting some code that did this to a compiler > that doesn't allow it. B.1(28) says that the Convention pragma is a representation pragma. 13.1(1) says that representation pragmas are one kind of _representation item_. 13.1(8) says that representation items are either "subtype-specific" or "type-related", with all representation items other than Size and Alignment clauses being type-related. The same paragraph says that the name in a type-related representation pragma must denote a first subtype. So I think using a subtype (other than the first subtype) in the Convention pragma is indeed prohibited by the language. -- Adam