comp.lang.ada
 help / color / mirror / Atom feed
* Missing **-operator in GNAT 3.14?
@ 2002-04-02  8:56 Anders Råberg
  2002-04-02 11:14 ` David C. Hoos, Sr.
  0 siblings, 1 reply; 8+ messages in thread
From: Anders Råberg @ 2002-04-02  8:56 UTC (permalink / 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
----------------------------------------------------------------------



^ permalink raw reply	[flat|nested] 8+ messages in thread
* Re: Missing **-operator in GNAT 3.14?
@ 2002-04-02 17:07 Robert Dewar
  0 siblings, 0 replies; 8+ messages in thread
From: Robert Dewar @ 2002-04-02 17:07 UTC (permalink / raw)


<<I do not dispute the correctness of the diagnostic, but what I am
curious about is why the diagnostic complains about "**", but
doesn't complain about "*".
>>

Because a matching "*" is declared but no matching "**" 




^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2002-04-03  3:51 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-02  8:56 Missing **-operator in GNAT 3.14? Anders Råberg
2002-04-02 11: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

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