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: a07f3367d7,6651f3800ba2b6ac X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!postnews.google.com!z14g2000yqh.googlegroups.com!not-for-mail From: Anh Vo Newsgroups: comp.lang.ada Subject: Re: Aspect programming Date: Fri, 29 Jul 2011 09:09:36 -0700 (PDT) Organization: http://groups.google.com Message-ID: <8bc7aeff-e8e1-4635-aea0-0687b02eede0@z14g2000yqh.googlegroups.com> References: NNTP-Posting-Host: 149.32.224.34 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1311955776 3108 127.0.0.1 (29 Jul 2011 16:09:36 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 29 Jul 2011 16:09:36 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: z14g2000yqh.googlegroups.com; posting-host=149.32.224.34; posting-account=Qh2kiQoAAADpCLlhT_KTYoGO8dU3n4I6 User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-Header-Order: HUALESRCNK X-HTTP-UserAgent: Mozilla/5.0 (Windows NT 5.1; rv:5.0) Gecko/20100101 Firefox/5.0,gzip(gfe) Xref: g2news1.google.com comp.lang.ada:20413 Date: 2011-07-29T09:09:36-07:00 List-Id: On Jul 28, 11:13=A0am, Adam Beneschan wrote: > On 7/27/2011 9:56 PM, AdaMagica wrote: > > > You're using GNAT, which requires one compilation unit per file. > > Thus your pragma Assertion_Policy applies only to the unit where it is > > in the context clause. > > > If you want it to apply to all units, you have to use it as a > > configuration pragma. > > It's not clear which one applies in the original poster's case. =A0If GNA= T > does disallow more than one compilation unit per file, then clearly the > source in the original post must actually be multiple files (or else it > wouldn't have worked), and we weren't really told where the dividing > lines between the files are. =A0For all we know, the first > Assertion_Policy pragma could have been in its own file. Actually, each program unit is in a separate file per GNAT convention. While posting, I just copy and past their contents one after the other. When using switch -gnata, GNAT crashes with a bug box. Harry Tucker already submitted a bug reported. Anh Vo