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.209.164 with SMTP id mn4mr6467560pbc.8.1427224768649; Tue, 24 Mar 2015 12:19:28 -0700 (PDT) X-Received: by 10.140.34.168 with SMTP id l37mr93123qgl.20.1427224768387; Tue, 24 Mar 2015 12:19:28 -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!news.glorb.com!z20no4387401igj.0!news-out.google.com!q90ni527qgd.1!nntp.google.com!h3no4581976qgf.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 24 Mar 2015 12:19:28 -0700 (PDT) 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 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <89634980-4629-4c50-a4bc-e7cd344ca222@googlegroups.com> Subject: GNAT bug in the GNAT GPL 2014 compiler? From: gorgelo@hotmail.com Injection-Date: Tue, 24 Mar 2015 19:19:28 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:25235 Date: 2015-03-24T12:19:28-07:00 List-Id: Dear all, I wasn't going to share the code for the mock code generator I've been work= ing on before completion, but I've run in to some strange compilation error= and would like to get a second opinion about it. The code that doesn't com= pile can be found at github: https://github.com/joakim-strandberg/amock amock depends upon ASIS (GNAT GPL 2014) and: https://github.com/joakim-strandberg/aida The compilation error is: amock-main_application.adb:170:61: missing "with = Ada.Characters;" That file contains "with Ada.Characters.Conversions;" among the with-statem= ents. Why does the compiler complain? If one comments out the line 170, the= code compiles just fine. When writing the code for amock I've refrained from using access types in a= nticipation for the coming release of SPARK GPL in May 2015. I think it wil= l be cool to be able to formally verify code that contains tagged types (Of= course, I don't know if SPARK GPL 2015 will support it, maybe that functio= nality will only exist in a PRO version). Anyways, amock has been written i= n anticipation of it. Best regards, Joakim Strandberg