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 X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!news.glorb.com!feeder.erje.net!newsfeed-fusi2.netcologne.de!news.netcologne.de!newsfeed-hp2.netcologne.de!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Issue with GNAT GPL 2009 and GtkAda Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <4A414EBB.8060204@free.fr> Date: Thu, 25 Jun 2009 11:39:40 +0200 Message-ID: <1avd65rn49abv$.krcxo2gdzb16$.dlg@40tude.net> NNTP-Posting-Date: 25 Jun 2009 11:39:40 CEST NNTP-Posting-Host: c070d92d.newsspool2.arcor-online.net X-Trace: DXC=BSoXQ@X<[W3T2Rfi6kg2m2LHJOQlao= X-Complaints-To: usenet-abuse@arcor.de Xref: g2news2.google.com comp.lang.ada:6612 Date: 2009-06-25T11:39:40+02:00 List-Id: On Thu, 25 Jun 2009 05:06:08 -0400, Stephen Leake wrote: > Another thought: whenever I have trouble with anonymous access types, > I replace them with the corresponding named access type, and the > problem goes away. That may indicate a conmpiler bug, but I've always > had to much to do to find out. Yes, but that is not necessarily a compiler bug. It is quite simple to create a serious problem to oneself: declare Ptr : access T := new T; begin ... External_Ptr := Ptr.all'Uchecked_Access; -- Copy the pointer ... end; -- Now External_Ptr is dangling, because the object is freed. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de