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-Thread: 103376,a1d2fe1ec5136718 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wns13feed!worldnet.att.net!attbi_s22.POSTED!53ab2750!not-for-mail From: "Jeffrey R. Carter" User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Generic warning References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Message-ID: NNTP-Posting-Host: 12.201.97.213 X-Complaints-To: abuse@mchsi.com X-Trace: attbi_s22 1213726804 12.201.97.213 (Tue, 17 Jun 2008 18:20:04 GMT) NNTP-Posting-Date: Tue, 17 Jun 2008 18:20:04 GMT Organization: AT&T ASP.att.net Date: Tue, 17 Jun 2008 18:20:04 GMT Xref: g2news1.google.com comp.lang.ada:748 Date: 2008-06-17T18:20:04+00:00 List-Id: S�bastien Morand wrote: > > I got the following warnings: > btreetests.adb:9:04: warning: in instantiation at scmal-tools-btrees.adb:159 > btreetests.adb:9:04: warning: value not in range of subtype of > "Standard.Integer" defined at scmal-tools-btrees.ads:82, instance at line 9 > btreetests.adb:9:04: warning: "Constraint_Error" will be raised at run time > btreetests.adb:9:04: warning: in instantiation at scmal-tools-btrees.adb:160 > btreetests.adb:9:04: warning: value not in range of subtype of > "Standard.Integer" defined at scmal-tools-btrees.ads:83, instance at line 9 > btreetests.adb:9:04: warning: "Constraint_Error" will be raised at run time > btreetests.adb:9:04: warning: in instantiation at scmal-tools-btrees.adb:161 > btreetests.adb:9:04: warning: value not in range of subtype of > "Standard.Integer" defined at scmal-tools-btrees.ads:84, instance at line 9 > btreetests.adb:9:04: warning: "Constraint_Error" will be raised at run time > btreetests.adb:9:04: warning: in instantiation at scmal-tools-btrees.adb:177 > btreetests.adb:9:04: warning: value not in range of subtype of > "Standard.Integer" defined at scmal-tools-btrees.ads:82, instance at line 9 > btreetests.adb:9:04: warning: "Constraint_Error" will be raised at run time > btreetests.adb:9:04: warning: in instantiation at scmal-tools-btrees.adb:178 > btreetests.adb:9:04: warning: value not in range of subtype of > "Standard.Integer" defined at scmal-tools-btrees.ads:83, instance at line 9 > btreetests.adb:9:04: warning: "Constraint_Error" will be raised at run time > > but I run time it works fine and I have no constraint error. > > Where theses warnings come from? How to correct my code? We can't help you, because you haven't shown us the code for SCMAL.Tools.Btrees, or even for the specified lines. Note that the ordered components of Ada.Containers have a similar data structure underlying them. Too bad Ada.Containers doesn't follow the Ada philosophy of providing basic building blocks that would make that data structure available. Of course, Ada compilers have to have unbounded integer and real packages, and the standard doesn't make them available, either. -- Jeff Carter "I'm a kike, a yid, a heebie, a hook nose! I'm Kosher, Mum! I'm a Red Sea pedestrian, and proud of it!" Monty Python's Life of Brian 77