comp.lang.ada
 help / color / mirror / Atom feed
From: "Sébastien Morand" <seb.morand@gmail.com>
Subject: Re: Generic warning
Date: Wed, 18 Jun 2008 08:41:31 +0000
Date: 2008-06-18T08:41:31+00:00	[thread overview]
Message-ID: <4858CA3B.7030101@gmail.com> (raw)
In-Reply-To: <ttqeca6peob2.1jgze60x240ta.dlg@40tude.net>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


> The problem is here. You instantiate TestGen with Order = 1. So the upper
> bound of Buffer is 2. Therefore the range is 1+2..Index, which should cause
> Constraint_Error in Buffer(I).

I understand, if Order = 1, then the code could never occur.

Anyway, There is a test just before in the real code that avoid the
impossible situation (index is between 1 and Order*2 always).

I could remove all the warnings except one that I had to change in a
While clause. But I put a comment in the code to explain why.

Thanks to show what I actually should have seen by myself.

Sebastien
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)

iD8DBQFIWMo7+zV9xm4PlDQRAuDMAJ9/qDRM1TL617fgDICj1JIYfgxcCgCgh2aI
Xsga9iFVpUAYBO5FKHJ6wXk=
=qGlV
-----END PGP SIGNATURE-----



  reply	other threads:[~2008-06-18  8:41 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 [this message]
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
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