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,28f9da0e028af98b X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!postnews.google.com!u24g2000prn.googlegroups.com!not-for-mail From: Adam Beneschan Newsgroups: comp.lang.ada Subject: Re: Is the Ada compiler of Polyspace invalid? Date: Mon, 21 Feb 2011 07:54:52 -0800 (PST) Organization: http://groups.google.com Message-ID: References: <0c1168ed-e09e-4555-a77e-40620dd80628@f15g2000yqf.googlegroups.com> <7f746aa4-e8c5-4fb3-8c6f-9041aa03ba3f@1g2000yqq.googlegroups.com> <3e7757f2-c6ad-42bc-9a34-938ed6e6a895@k18g2000vbq.googlegroups.com> NNTP-Posting-Host: 66.126.103.122 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1298303692 19249 127.0.0.1 (21 Feb 2011 15:54:52 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 21 Feb 2011 15:54:52 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: u24g2000prn.googlegroups.com; posting-host=66.126.103.122; posting-account=duW0ogkAAABjRdnxgLGXDfna0Gc6XqmQ User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; WOW64; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.21022; .NET CLR 3.5.30729; .NET CLR 3.0.30618; .NET4.0C),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:18490 Date: 2011-02-21T07:54:52-08:00 List-Id: On Feb 21, 12:32=A0am, Julian Leyh wrote: > On 18 Feb., 10:40, Martin wrote: > > > > > > > On Feb 18, 8:58=A0am, Julian Leyh wrote: > > > > Hi, > > > > I have some Ada code, which I would like to try Polyspace on. > > > > It contains something like this (simplified): > > > > foo.ads: > > > procedure foo; > > > > foo.adb: > > > procedure foo is > > > ... > > > end foo; > > > > somewhere else: > > > with foo; > > > ... > > > foo; > > > ... > > > > The Polyspace compiler doesn't seem to like this.. > > > > In my understanding, the above should be completely valid Ada code - > > > even should have been valid Ada83 code (I use Ada95 standard for my > > > project). > > > > Is the Polyspace compiler wrong? That would mean, it is no valid Ada > > > compiler.. Or is there a way to make Polyspace understand it? > > > > Greetings, > > > Julian > > > What's the error you're seeing? also what folders/files are visible in > > your polyspace project?... > > > -- Martin > > The error is: > > Error: procedure or entry name expected.- Hide quoted text - Are there other uses of the identifier "foo"? Other uses that could cause problems are "foo" being declared as something else or used as a statement label or block or loop identifier in the same unit that's calling foo. If the unit is a package body, then a "foo" defined in the specification could also cause problems. Also, if the unit is a child unit, a "foo" defined in the specification of the parent package or any ancestor package can cause problems. Finally, a "foo" defined in the specification of any USE'd package can cause problems. Depending on the circumstances, any of these could lead to a situation where the library unit "foo" that got WITH'ed is hidden. If the identifier really did get hidden, you can still call it by referring to it as "standard.foo;" -- Adam