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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,257e0f74d1a1dfa6 X-Google-Attributes: gid103376,public From: Pascal Ledru Subject: Re: Gnat3.05 Compile Error Msg Date: 1996/08/22 Message-ID: <321C833D.2CC7@MSMAIL3.HAC.COM>#1/1 X-Deja-AN: 176626543 references: <4vbuvu$jh5@Masala.CC.UH.EDU> content-type: text/plain; charset=us-ascii organization: Aerospatiale, Inc mime-version: 1.0 newsgroups: comp.lang.ada x-mailer: Mozilla 3.0b5 (Macintosh; I; PPC) Date: 1996-08-22T00:00:00+00:00 List-Id: This is a legitimate error message. Suppose you declare a global variable (I) before your Rec type (Assume Rec and Get_Int_Ptr are in a declare block), and add the assignment I := R.B'Access before the return statement; then I could be used even if you are outside the scopy of R.B'Access. If you are pretty sure you don't have this accessibility problem, Unchecked_Access instead of Access should work.