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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,a1d2fe1ec5136718 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news2.google.com!news1.google.com!news.glorb.com!feeder.erje.net!newsfeed01.sul.t-online.de!t-online.de!news.belwue.de!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Generic warning Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: Date: Tue, 17 Jun 2008 19:17:01 +0200 Message-ID: NNTP-Posting-Date: 17 Jun 2008 19:17:03 CEST NNTP-Posting-Host: 53f3b4f0.newsspool3.arcor-online.net X-Trace: DXC=SEOIS=^R0 On Tue, 17 Jun 2008 16:44:10 +0000, S�bastien Morand wrote: > When I create an instance of the package using the following code: > > 9 package IT is new SCMAL.Tools.BTrees( > 10 Element => Integer, > 11 Element_Null => 0, > 12 Key => Integer, As a guess, there could be a conflict upon instantiation when Element and Key are the same type. I had once such a problem. GNAT always had problems with generics. > Where theses warnings come from? How to correct my code? Maybe it is just a compiler bug. But you should post a complete compilable code. > Is there a way to avoid to take the default "<" and ">" function? I don't see you using defaults for the formal parameters "<" and ">". You have: with function "<"(k1: in Key; k2: in Key) return Boolean; with function ">"(k1: in Key; k2: in Key) return Boolean; not with function "<"(k1: in Key; k2: in Key) return Boolean is <>; with function ">"(k1: in Key; k2: in Key) return Boolean is <>; -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de