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-Thread: 103376,e859f774bbb3dfb3 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!news.glorb.com!feeder.erje.net!news-fra1.dfn.de!storethat.news.telefonica.de!telefonica.de!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: another way to shoot yourself in the foot? 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: <54157920-377a-441b-9b0b-f0c4f9ddffec@f36g2000hsa.googlegroups.com> Date: Fri, 20 Jun 2008 11:34:02 +0200 Message-ID: <15z8wo6iewt2j.174nhbzom2i0t.dlg@40tude.net> NNTP-Posting-Date: 20 Jun 2008 11:34:02 CEST NNTP-Posting-Host: e1ba9e28.newsspool1.arcor-online.net X-Trace: DXC=ggNGnIIK`a]aAeROF2PWMQic==]BZ:af^4Fo<]lROoRQ<`=YMgDjhgRbjgW5j\LYKW[6LHn;2LCV^7enW;^6ZC`TIXm65S@:3>_G2NmO@GU5V] X-Complaints-To: usenet-abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:773 Date: 2008-06-20T11:34:02+02:00 List-Id: On Fri, 20 Jun 2008 02:03:32 -0700 (PDT), fedya_fedyakoff@inbox.ru wrote: > Consider a very simple code. Suppose we have [...] > I have an idea why the program behavs like that, but i think there > must be some warning at least. > > What do you think? This looks like a compiler bug to me. It seems that the compiler prematurely finalizes the object created by the factory, as if the object were non-limited. Because the object is nevertheless somewhat limited this finalization happens in-place, on a living object... (:-)) -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de