From: Anatoly Chernyshev <achernyshev@gmail.com>
Subject: Re: Possible bug?
Date: Fri, 10 Jul 2015 17:29:07 -0700 (PDT)
Date: 2015-07-10T17:29:07-07:00 [thread overview]
Message-ID: <b511d0b6-96a8-4875-a498-008ac39ae331@googlegroups.com> (raw)
In-Reply-To: <mnph7b$elv$1@loke.gir.dk>
Right. I guess, I became overrelaxed at Ada's capacity to straighten up whatever stupid things I could put in the code.
> > No. What happens is that it constructs an initialization aggregate whose
> > bounds are (n_d, 2), and then raises Constraint_Error because the bounds
> > of the initial value do not match those of the variable. That's exactly
> > what the warning is telling you.
>
> Right. More generally, "out of range" errors are always reported at runtime;
> compilers often give a warning but they're not allowed to reject the
> program. That's because perfectly sensible programs might contain an "out of
> range" error in code that will never be executed, and one would be very
> annoyed if the program was rejected.
prev parent reply other threads:[~2015-07-11 0:29 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-10 9:46 Possible bug? Anatoly Chernyshev
2015-07-10 10:06 ` J-P. Rosen
2015-07-10 22:33 ` Randy Brukardt
2015-07-11 0:29 ` Anatoly Chernyshev [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox