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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 Path: border1.nntp.dca3.giganews.com!backlog3.nntp.dca3.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!goblin2!goblin.stu.neva.ru!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Warning: accessibility check failure with GNAT GPL 2013 Date: Mon, 28 Oct 2013 15:26:33 +0100 Organization: cbb software GmbH Message-ID: References: <4395468b-93d3-45f4-8bc0-91cd646ff1d9@googlegroups.com> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: IenaDxMXK2hi7fvYcb+MlQ.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 X-Original-Bytes: 1182 Xref: number.nntp.dca.giganews.com comp.lang.ada:183746 Date: 2013-10-28T15:26:33+01:00 List-Id: On Mon, 28 Oct 2013 06:49:30 -0700 (PDT), sangomarco@gmail.com wrote: > function New_Thread return access Cyclic_Thread is > begin > return new Cyclic_Thread; > end New_Thread; The rule of thumb: you never return an anonymous access result allocated by new. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de