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: a07f3367d7,75ce2ead897158b2 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit X-Received: by 10.224.157.1 with SMTP id z1mr403068qaw.8.1364504313613; Thu, 28 Mar 2013 13:58:33 -0700 (PDT) X-Received: by 10.50.53.232 with SMTP id e8mr2302083igp.14.1364504313559; Thu, 28 Mar 2013 13:58:33 -0700 (PDT) Path: v17ni9qad.0!nntp.google.com!ca1no15147523qab.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 28 Mar 2013 13:58:33 -0700 (PDT) In-Reply-To: <0c77e832-e12b-446d-af24-78d77c358f1e@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=66.126.103.122; posting-account=duW0ogkAAABjRdnxgLGXDfna0Gc6XqmQ NNTP-Posting-Host: 66.126.103.122 References: <0c77e832-e12b-446d-af24-78d77c358f1e@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <25ee066d-3270-4efd-829f-ed40b04c0655@googlegroups.com> Subject: Re: My bug or else regarding Visibility Rules From: Adam Beneschan Injection-Date: Thu, 28 Mar 2013 20:58:33 +0000 Content-Type: text/plain; charset=ISO-8859-1 Date: 2013-03-28T13:58:33-07:00 List-Id: On Thursday, March 28, 2013 12:54:26 PM UTC-7, Anh Vo wrote: > For the codes below GNAT complains that In_Index, Buffer, and Out_Index are undefined. However, if I comment out private key word, GNAT is happy. Did I violate Ada syntax rules? Thanks. 13.1.1(11): The usage names in an aspect_definition [ are not resolved at the point of the associated declaration, but rather] are resolved at the end of the immediately enclosing declaration list. In your example, the "immediately enclosing declaration list" ends at the keyword PRIVATE when that keyword is present; but if you take it out, the declaration list ends at "end Circular_Queue;". -- Adam