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,c71d0b53277efb27 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.73.233 with SMTP id o9mr1451601pbv.8.1320827409788; Wed, 09 Nov 2011 00:30:09 -0800 (PST) Path: h5ni15805pba.0!nntp.google.com!news1.google.com!goblin2!goblin.stu.neva.ru!aioe.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Another question on class constructor Date: Wed, 09 Nov 2011 08:30:07 +0000 Organization: A noiseless patient Spider Message-ID: References: <19338900.553.1320719246503.JavaMail.geo-discussion-forums@yqpp12> <13650980.81.1320799254130.JavaMail.geo-discussion-forums@yqiu15> Mime-Version: 1.0 Injection-Info: mx04.eternal-september.org; posting-host="dFCm8HWntFqmDIilBLqEJQ"; logging-data="730"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+bz5haVoE4xSiBLU2k7hIGpGZYm3tf+mQ=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (darwin) Cancel-Lock: sha1:W9LVkKisAuU2HuBJGCrqz+NBJFo= sha1:7N+prTpDaD3SPwuIkmPwxuJoz3s= Xref: news1.google.com comp.lang.ada:18878 Content-Type: text/plain; charset=us-ascii Date: 2011-11-09T08:30:07+00:00 List-Id: "Rego, P." writes: > Actually, I got a suggestion looked like this in some posts ago and I > was trying to follow it. Now I realize that I was not making wrong (I > thought this error message was due to some mistake in my code). And I > guess this is a GNAT bug from GNAT GPL 2011: > > c:\tst>gnatmake -gnat12 test_pkg.adb > gcc -c -gnat12 test_pkg.adb > +===========================GNAT BUG DETECTED==============================+ > | GPL 2011 (20110428) (i686-pc-mingw32) GCC error: | > | in create_tmp_var, at gimplify.c:505 | > | Error detected around test_pkg.adb:20:29 | > | Please submit a bug report by email to report@adacore.com. | Have you done that? I get the same here, also with GCC 4.6.0, but not with 4.7 [180524] so _may_ already be fixed in AdaCore's sources. When you see a bug box like this, it's definitely a compiler error; whether it's because it doesn't handle your legal code, or because it fails to detect your illegal code and give a proper error report, it's still wrong!