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=-0.4 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_00 autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,a95382f748dc02ae X-Google-Attributes: gid103376,public Path: g2news1.google.com!news1.google.com!news.glorb.com!cyclone1.gnilink.net!spamkiller2.gnilink.net!gnilink.net!nwrdny02.gnilink.net.POSTED!0f19ed38!not-for-mail From: "Frank J. Lhota" Newsgroups: comp.lang.ada References: <40CEEFCF.7060703@noplace.com> Subject: Re: Gnat Error: intrinsic operator can only apply to numeric types X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 Message-ID: Date: Tue, 15 Jun 2004 13:12:48 GMT NNTP-Posting-Host: 141.154.58.140 X-Complaints-To: abuse@verizon.net X-Trace: nwrdny02.gnilink.net 1087305168 141.154.58.140 (Tue, 15 Jun 2004 09:12:48 EDT) NNTP-Posting-Date: Tue, 15 Jun 2004 09:12:48 EDT Xref: g2news1.google.com comp.lang.ada:1504 Date: 2004-06-15T13:12:48+00:00 List-Id: "Marin David Condic" 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.