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,WEIRD_PORT autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,268e52cd81f7181c X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,UTF8 Path: g2news1.google.com!news4.google.com!feeder.news-service.com!94.75.214.39.MISMATCH!aioe.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: GNAT bug - still in 2010? Date: Wed, 27 Oct 2010 22:56:14 +0100 Organization: A noiseless patient Spider Message-ID: References: <6cebf1a3-3b2a-4e79-a39e-669a6a5ca00c@l20g2000yqm.googlegroups.com> <4cc89500$0$6990$9b4e6d93@newsspool4.arcor-online.net> <2806244b-5b67-4d67-811f-05e797760b6d@e14g2000yqe.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: mx03.eternal-september.org; posting-host="dFCm8HWntFqmDIilBLqEJQ"; logging-data="28019"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18hQxtRZtXmMUgU9AmU+1KHsUmYlEXqlSk=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (darwin) Cancel-Lock: sha1:y6EQWq6DYtM4x81YoP7tLqO8kH0= sha1:ShfT26PZ4pX0ExJK4Qu/r7g/02k= Xref: g2news1.google.com comp.lang.ada:14870 Date: 2010-10-27T22:56:14+01:00 List-Id: Maciej Sobczak writes: > On 27 Paź, 23:09, Georg Bauhaus > wrote: > >> $ gnatmake -gnatf -gnatwa -gnat05 -gnatv test.adb >> gcc -c -gnatwa -gnat05 -gnatv test.adb >> >> GNAT GPL 2009 (20090519) >> etc., same  messages > > $ gnatmake -gnatf -gnatwa -gnat05 -gnatv test.adb > gcc -c -gnatf -gnatwa -gnat05 -gnatv test.adb > > GNAT GPL 2009 (20090519) > Copyright 1992-2009, Free Software Foundation, Inc. > +===========================GNAT BUG > DETECTED==============================+ > | GPL 2009 (20090519) (x86_64-apple-darwin9.6.0) Constraint_Error > erroneous memory access| > > > I also work on Mac and I have the same compiler version. > Looks like there are different "same" compiler versions... This is a bit worrying. I suspect you may be using one of the compilers that I built for Snow Leopard? Here, the AdaCore 2009 & 2010 compilers (which were built with --enable-checking=release) behave as Georg reports, whereas my builds, including GCC 4.5.0 (without --enable-checking=release) behave as you report. I don't think 32. Free (Ptr); 1 2 >>> "" is undefined >>> expected private type "System.Tasking.Protected_Objects.Protection" >>> found type "System.Tasking.Protected_Objects.Entries.Protection_Entries" >>> ==> in call to "Finalize_Protection" at s-taprob.ads:244 is a sensible set of error messages; the compiler is clearly confused and the bug box is arguably a better outcome!