comp.lang.ada
 help / color / mirror / Atom feed
From: "Frank J. Lhota" <NOSPAM.lhota.adarose@verizon.net>
Subject: Re: Gnat Error: intrinsic operator can only apply to numeric types
Date: Tue, 15 Jun 2004 13:12:48 GMT
Date: 2004-06-15T13:12:48+00:00	[thread overview]
Message-ID: <kBCzc.28637$mz.6308@nwrdny02.gnilink.net> (raw)
In-Reply-To: 40CEEFCF.7060703@noplace.com

"Marin David Condic" <nobody@noplace.com> wrote in message
news:40CEEFCF.7060703@noplace.com...
> In using Gnat 3.15p on Windows with GPS v1.4.0, I encountered a problem
> when trying to use the package System. I get a compiler error message
> that reads "intrinsic operator can only apply to numeric types" in
> reference to the following code in System:
>
>    function "<"  (Left, Right : Address) return Boolean;
>     function "<=" (Left, Right : Address) return Boolean;
>     function ">"  (Left, Right : Address) return Boolean;
>     function ">=" (Left, Right : Address) return Boolean;
>     function "="  (Left, Right : Address) return Boolean;
>
>     pragma Import (Intrinsic, "<");
>     pragma Import (Intrinsic, "<=");
>     pragma Import (Intrinsic, ">");
>     pragma Import (Intrinsic, ">=");
>     pragma Import (Intrinsic, "=");
>
> Commenting out the pragmas get you past this, but then, of course,
> everything in the Gnat side that depended on System is officially out of
> date. This seems unacceptable as a fix.

It would also be unacceptable because after commenting out these pragmas,
you would have to provide bodies for these operators.

> Has anyone else encountered this? Is there a fix or workaround?

I've used 3.14p and 3.3.1, and I have never seen this. It is also more than
a little surprising, for the GNAT version of system has had these
declarations for years.





  reply	other threads:[~2004-06-15 13:12 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-15 12:47 Gnat Error: intrinsic operator can only apply to numeric types Marin David Condic
2004-06-15 13:12 ` Frank J. Lhota [this message]
2004-06-15 18:56 ` Jeffrey Carter
2004-06-15 19:16   ` Martin Dowie
2004-06-15 22:25     ` Marin David Condic
2004-06-16  5:59       ` Martin Krischik
2004-06-16 12:01         ` Marin David Condic
2004-06-16  7:43       ` Martin Dowie
2004-06-16 12:10         ` Marin David Condic
2004-06-16 19:29           ` Simon Wright
2004-06-17 12:15             ` Marin David Condic
2004-06-18  7:41               ` Martin Dowie
2004-06-18 11:51                 ` Marin David Condic
2004-06-18 13:14                   ` Martin Dowie
2004-06-19  8:29                     ` Marin David Condic
2004-06-19 10:07                       ` Martin Dowie
2004-06-20  0:29                   ` Pylinius
2004-06-15 22:22   ` Marin David Condic
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox