comp.lang.ada
 help / color / mirror / Atom feed
From: "Jeffrey R. Carter" <spam.jrcarter.not@spam.acm.org>
Subject: Re: Generic warning
Date: Tue, 17 Jun 2008 18:20:04 GMT
Date: 2008-06-17T18:20:04+00:00	[thread overview]
Message-ID: <ofT5k.158331$TT4.31969@attbi_s22> (raw)
In-Reply-To: <g38pkv$vi9$1@registered.motzarella.org>

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



  parent reply	other threads:[~2008-06-17 18:20 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-17 16:44 Generic warning Sébastien Morand
2008-06-17 17:17 ` Dmitry A. Kazakov
2008-06-17 18:33   ` Sébastien Morand
2008-06-17 19:04     ` Dmitry A. Kazakov
2008-06-18  8:41       ` Sébastien Morand
2008-06-18 14:16         ` Brian Drummond
2008-06-18 14:32           ` Sébastien Morand
2008-06-18 14:39             ` Ed Falis
2008-06-18 14:42             ` Dmitry A. Kazakov
2008-06-18 15:10               ` Robert A Duff
2008-06-18 15:25                 ` Dmitry A. Kazakov
2008-06-18 15:38                   ` Ed Falis
2008-06-18 17:04                     ` Dmitry A. Kazakov
2008-06-17 18:20 ` Jeffrey R. Carter [this message]
2008-06-18  8:55   ` Sébastien Morand
replies disabled

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