From: Tucker Taft <stt@averstar.com>
Subject: Re: GNAT Error message
Date: Tue, 19 Dec 2000 10:56:58 -0500
Date: 2000-12-19T15:56:59+00:00 [thread overview]
Message-ID: <3A3F854A.4AAC16EB@averstar.com> (raw)
In-Reply-To: 3A3D01EA.37CB440B@libertysurf.fr
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
next prev parent reply other threads:[~2000-12-19 15:56 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-12-17 18:11 GNAT Error message Thierry&Annick
2000-12-18 0:56 ` Robert Dewar
2000-12-18 21:58 ` Thierry&Annick
2000-12-19 2:23 ` Ken Garlington
2000-12-19 15:37 ` Robert Dewar
2000-12-19 15:56 ` Tucker Taft [this message]
2000-12-20 0:38 ` Robert Dewar
2000-12-20 17:44 ` Larry Kilgallen
2000-12-20 20:36 ` Robert Dewar
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox