comp.lang.ada
 help / color / mirror / Atom feed
From: "Marin David Condic" <dont.bother.mcondic.auntie.spam@[acm.org>
Subject: Re: Unchecked_Deallocation and Constraint_Error
Date: Tue, 19 Feb 2002 09:15:44 -0500
Date: 2002-02-19T14:15:47+00:00	[thread overview]
Message-ID: <a4tmmj$asm$1@nh.pace.co.uk> (raw)
In-Reply-To: 87adu57ht6.fsf@deneb.enyo.de

It is probably really important to know the platform, compiler, version and
compiler options enabled when discussing why an exception of this nature is
or is not raised. I could easily imagine a compiler optimizing away the
checks necessary for this exception in the abscence of options specifying
full Ada95 runtime checking.

I know, for example, that Gnat won't generate the checks that cause
Constraint_Error on integer range excptions unless you throw a switch to
enable it. Could this be a similar case?

MDC
--
Marin David Condic
Senior Software Engineer
Pace Micro Technology Americas    www.pacemicro.com
Enabling the digital revolution
e-Mail:    marin.condic@pacemicro.com
Web:      http://www.mcondic.com/


"Florian Weimer" <fw@deneb.enyo.de> wrote in message
news:87adu57ht6.fsf@deneb.enyo.de...
> Christoph Grein <christoph.grein@eurocopter.com> writes:
>
> > That's correct, but 13.11.2(7) specifies that the value of Cmd is
> > null after UD (I assume Free is an instantiation of UD), so a
> > dereference Cmd(1) must raise CE, except when checks are suppressed.
>
> Oops, you are correct.  Maybe the OP is operating on a copy of the
> access value, so that 13.11.2(7) does not matter.





  reply	other threads:[~2002-02-19 14:15 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-19 12:13 Unchecked_Deallocation and Constraint_Error Christoph Grein
2002-02-19 12:54 ` Florian Weimer
2002-02-19 14:15   ` Marin David Condic [this message]
2002-02-20 18:59     ` Robert Dewar
2002-02-20 22:45       ` Marin David Condic
2002-02-26 22:37     ` Michal Nowikowski
  -- strict thread matches above, loose matches on Subject: below --
2002-02-19 11:11 Michal Nowikowski
2002-02-19 11:59 ` Florian Weimer
2002-02-19 16:34   ` Jim Gleason
2002-02-19 23:23   ` Robert Dewar
replies disabled

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