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.1 required=5.0 tests=AXB_XMAILER_MIMEOLE_OL_024C2, BAYES_00,MAILING_LIST_MULTI,REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,21f9679c40f65a8c X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-04-02 03:15:04 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!deine.net!freenix!enst!enst.fr!not-for-mail From: "David C. Hoos, Sr." Newsgroups: comp.lang.ada Subject: Re: Missing **-operator in GNAT 3.14? Date: Tue, 2 Apr 2002 05:14:36 -0600 Organization: ENST, France Sender: comp.lang.ada-admin@ada.eu.org Message-ID: References: <3CA97235.974C8641@NO.SPAM.PLEASE.emw.ericsson.se> Reply-To: comp.lang.ada@ada.eu.org NNTP-Posting-Host: marvin.enst.fr Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Trace: avanie.enst.fr 1017746103 70014 137.194.161.2 (2 Apr 2002 11:15:03 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Tue, 2 Apr 2002 11:15:03 +0000 (UTC) Return-Path: X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: comp.lang.ada mail<->news gateway List-Unsubscribe: , Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org Xref: archiver1.google.com comp.lang.ada:21988 Date: 2002-04-02T05:14:36-06:00 The renaming declarations are unneccessary because those operators are implicitly declared for all integer types. That this is so is evidenced by the successful compilation and execution of the following program (with the renaming declarations in Mytest commented out): with Ada.Text_IO; with Mypack; with Mytest; procedure Main is use type Mypack.Short; Value : Mypack.Short := 3 ** 4; My_Value : Mytest.My_Short := 4 ** 5; begin Ada.Text_IO.Put_Line (Value'Img); Ada.Text_IO.Put_Line (My_Value'Img); end Main; The fact that "*", and "**" are treated differently by GNAT looks like a "bug" to me, though, and you should probably report it to report@gnat.com ----- Original Message ----- From: "Anders R�berg" Newsgroups: comp.lang.ada To: Sent: April 02, 2002 2:56 AM Subject: Missing **-operator in GNAT 3.14? > Hi all, > > I'm trying to compile a program that contains the follwing code: > > > --- mypack.ads --- > > 1: with Interfaces; > 2: > 3: package Mypack is > 4: type Short is new Interfaces.Integer_16; > 5: end Mypack; > > ------------------ > > > > --- mytest.ads --- > > 1: with Mypack; > 2: > 3: package Mytest is > 4: subtype My_Short is Mypack.Short; > 5: > 6: function "*" (A, B : in My_Short) return My_Short renames > Mypack."*"; > 7: > 8: function "**" (A, B : in My_Short) return My_Short renames > Mypack."**"; > 9: end Mytest; > > ----------------- > > % gcc -c mytest.ads > mytest.ads:8:63: operator for type "Short" is not declared in > "Mypack" > > > When I compile the program with GNAT 3.13, 3.12 etc. it works perfectly > fine, but when I use 3.14 I get the error stated above. Has the > **-operator been removed or have I missed something? > > > Regards, > Anders > > -- > ---------------------------------------------------------------------- > Anders R�berg, M.Sc. C.S&E > Software Systems Engineer > Ericsson Microwave Systems AB, Sweden > ---------------------------------------------------------------------- > _______________________________________________ > comp.lang.ada mailing list > comp.lang.ada@ada.eu.org > http://ada.eu.org/mailman/listinfo/comp.lang.ada > >