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: 103376,b672743914db49f X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!newsfeed-00.mathworks.com!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: "Ada Gems": Constructor functions Date: Wed, 05 Sep 2007 20:04:02 -0400 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <1189015827.384331.17490@k79g2000hse.googlegroups.com> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Transfer-Encoding: 8bit X-Trace: pcls6.std.com 1189037043 26935 192.74.137.71 (6 Sep 2007 00:04:03 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Thu, 6 Sep 2007 00:04:03 +0000 (UTC) User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (irix) Cancel-Lock: sha1:tYZvafxwNWYyToem9e9cQuESFe8= Xref: g2news2.google.com comp.lang.ada:1766 Date: 2007-09-05T20:04:02-04:00 List-Id: Tomek Wa�kuski writes: > Is it REALLY a compiler bug? Or am I only dumb? :) Maybe I'm doing > something, somewhere wrong? Well, there are several mistakes in the code you posted. Jeff mentioned some. Also, there are a couple of missing "begin"s in function bodies. But "GNAT BUG DETECTED" really means what it says -- if you make a mistake, the compiler should tell you about it, rather than crashing with the bug-box message. So yes, this is a compiler bug, by definition. Are you sure the code you posted is identical to the code that caused the bug box? - Bob