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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.68.197.165 with SMTP id iv5mr9059357pbc.3.1427268935857; Wed, 25 Mar 2015 00:35:35 -0700 (PDT) X-Received: by 10.182.233.202 with SMTP id ty10mr73478obc.31.1427268935772; Wed, 25 Mar 2015 00:35:35 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!newsfeed.fsmpi.rwth-aachen.de!newsfeed.straub-nv.de!proxad.net!feeder1-2.proxad.net!209.85.213.216.MISMATCH!z20no4637605igj.0!news-out.google.com!qk8ni67122igc.0!nntp.google.com!z20no3045938igj.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Wed, 25 Mar 2015 00:35:35 -0700 (PDT) In-Reply-To: <850d68b8-fdc6-4363-a8c2-d5868ecbed6f@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=85.227.164.142; posting-account=-SMKVgoAAAA8u8UnmI_NwOPA-LGqXugp NNTP-Posting-Host: 85.227.164.142 References: <89634980-4629-4c50-a4bc-e7cd344ca222@googlegroups.com> <850d68b8-fdc6-4363-a8c2-d5868ecbed6f@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <1c486967-cf12-4aa0-9bc0-3774f3fc8188@googlegroups.com> Subject: Re: GNAT bug in the GNAT GPL 2014 compiler? From: gorgelo@hotmail.com Injection-Date: Wed, 25 Mar 2015 07:35:35 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:25244 Date: 2015-03-25T00:35:35-07:00 List-Id: Den tisdag 24 mars 2015 kl. 22:56:36 UTC+1 skrev Anh Vo: > On Tuesday, March 24, 2015 at 12:19:30 PM UTC-7, gor...@hotmail.com wrote= : > >=20 > > The compilation error is: amock-main_application.adb:170:61: missing "w= ith Ada.Characters;" > >=20 > > That file contains "with Ada.Characters.Conversions;" among the with-st= atements. Why does the compiler complain? If one comments out the line 170,= the code compiles just fine. > >=20 > Line 170 looks perfectly fine. Could you post the exact compilation error= message. I am curious about this also. >=20 > Anh Vo Here is the exact compilation error message:=20 joakimstrandberg$ gprbuild -P amock.gpr=20 gcc -c -gnat12 amock-main_application.adb amock-main_application.adb:170:61: missing "with Ada.Characters;" gprbuild: *** compilation phase failed It's not only the package Ada.Characters that the compiler complains about.= It does not allow usage of Ada.Text_IO nor Ada.Wide_Text_IO. It seems that= any usage of a subprogram in any of the child packages of the Ada package = is forbidden in the body of the Amock.Main_Application package. I can't ima= gine it can be anything but a GNAT compiler bug. I am hoping to be proven w= rong and that I've done some obvious mistake. Joakim Strandberg