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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,32dcee4844599b87 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2000-12-19 07:57:00 PST Path: supernews.google.com!sn-xit-02!sn-xit-03!supernews.com!logbridge.uoregon.edu!news.bu.edu!inmet!not-for-mail From: Tucker Taft Newsgroups: comp.lang.ada Subject: Re: GNAT Error message Date: Tue, 19 Dec 2000 10:56:58 -0500 Organization: AverStar (formerly Intermetrics) Burlington, MA USA Message-ID: <3A3F854A.4AAC16EB@averstar.com> References: <3A3D01EA.37CB440B@libertysurf.fr> NNTP-Posting-Host: nebula.burl.averstar.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: inmet2.burl.averstar.com 977241419 7723 141.199.8.77 (19 Dec 2000 15:56:59 GMT) X-Complaints-To: usenet@inmet2.burl.averstar.com NNTP-Posting-Date: 19 Dec 2000 15:56:59 GMT X-Mailer: Mozilla 4.75 [en] (X11; U; SunOS 5.7 sun4u) X-Accept-Language: en Xref: supernews.google.com comp.lang.ada:3251 Date: 2000-12-19T15:56:59+00:00 List-Id: Thierry&Annick wrote: > The GNAT error message after gnatchop'ed (gnatchop -q -r -w) is : > test.ada:13:38: invalid operand types for operator "-" > test.ada:13:38: left operand has type "Index_Type" defined at test.ada:2 > > test.ada:13:38: right operand has type "Index_Type" defined at > test.ada:2 > gnatmake: "check.adb" compilation error > > Ok, my fault : Index_Type should be "range <>" to have a "-" operator, > but the error message is not clear. > Anybody knows what will this message be with others compilers ? Here is the "AdaMagic" error message, interspersed in the listing: ... 13 This (Index) := Integer (Index - This'First); -- Line 13 * *****Error: LRM:8.4(1) Binary operator "-" between Index_Type and Index_Type ***** not directly visible, use clause or conversion might be needed 14 end loop; ... Not clearly better or worse, in my view, than the GNAT error message. -- -Tucker Taft stt@averstar.com http://www.averstar.com/~stt/ Technical Director, Commercial Division, AverStar (formerly Intermetrics) (http://www.averstar.com/services/IT_consulting.html) Burlington, MA USA