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!bl1g2000vbb.googlegroups.com!not-for-mail From: Anh Vo Newsgroups: comp.lang.ada Subject: Re: Aspect programming Date: Mon, 1 Aug 2011 11:20:04 -0700 (PDT) Organization: http://groups.google.com Message-ID: 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 1312222881 1974 127.0.0.1 (1 Aug 2011 18:21:21 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 1 Aug 2011 18:21:21 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: bl1g2000vbb.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:20441 Date: 2011-08-01T11:20:04-07:00 List-Id: On Jul 27, 9:56=A0pm, 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. Actually, each program unit is contained in a separate file per GNAT file / unit convention. Interestingly enough GNAT crashes with a bug box when -gnata switch is used. In fact, Harry Tucker submitted a bug report already. In addition, based on Adam's comments, I am convinced that this is a compiler's bug. By the way, thank you for all replies. Anh Vo