comp.lang.ada
 help / color / mirror / Atom feed
From: "Anders Råberg" <anders.raberg@NO.SPAM.PLEASE.emw.ericsson.se>
Subject: Missing **-operator in GNAT 3.14?
Date: Tue, 02 Apr 2002 10:56:21 +0200
Date: 2002-04-02T10:56:21+02:00	[thread overview]
Message-ID: <3CA97235.974C8641@NO.SPAM.PLEASE.emw.ericsson.se> (raw)

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
----------------------------------------------------------------------



             reply	other threads:[~2002-04-02  8:56 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-02  8:56 Anders Råberg [this message]
2002-04-02 11:14 ` Missing **-operator in GNAT 3.14? David C. Hoos, Sr.
2002-04-02 16:18   ` Robert Dewar
2002-04-02 16:42     ` David C. Hoos
2002-04-02 17:11       ` Sergey Koshcheyev
2002-04-03  1:02         ` Robert Dewar
2002-04-03  3:51           ` Steve Doiel
  -- strict thread matches above, loose matches on Subject: below --
2002-04-02 17:07 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