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 X-Google-Thread: 103376,21f9679c40f65a8c,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-04-02 00:56:23 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!hammer.uoregon.edu!news.algonet.se!news.tele.dk!small.news.tele.dk!195.54.122.107!newsfeed1.bredband.com!bredband!newsfeed1.telenordia.se!algonet!uab.ericsson.se!erix.ericsson.se!erinews.ericsson.se!news.emw.ericsson.se!not-for-mail Message-ID: <3CA97235.974C8641@NO.SPAM.PLEASE.emw.ericsson.se> From: Anders =?iso-8859-1?Q?R=E5berg?= Organization: Ericsson Microwave Systems AB X-Mailer: Mozilla 4.75C-EMW [en] (X11; U; SunOS 5.7 sun4u) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Missing **-operator in GNAT 3.14? Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Date: Tue, 02 Apr 2002 10:56:21 +0200 NNTP-Posting-Host: 136.225.182.26 X-Trace: news.emw.ericsson.se 1017737781 136.225.182.26 (Tue, 02 Apr 2002 10:56:21 MET DST) NNTP-Posting-Date: Tue, 02 Apr 2002 10:56:21 MET DST Xref: archiver1.google.com comp.lang.ada:21982 Date: 2002-04-02T10:56:21+02:00 List-Id: 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 ----------------------------------------------------------------------