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=-0.4 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_00 autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,c658912279760559 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-02-19 16:27:46 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeeds.belnet.be!news.belnet.be!psinet-eu-nl!psiuk-p4!uknet!psiuk-p3!uknet!psiuk-n!news.pace.co.uk!nh.pace.co.uk!not-for-mail From: "Marin David Condic" Newsgroups: comp.lang.ada Subject: Re: Unchecked_Deallocation and Constraint_Error Date: Tue, 19 Feb 2002 09:15:44 -0500 Organization: Posted on a server owned by Pace Micro Technology plc Message-ID: References: <87adu57ht6.fsf@deneb.enyo.de> NNTP-Posting-Host: dhcp-200-133.miami.pace.co.uk X-Trace: nh.pace.co.uk 1014128147 11158 136.170.200.133 (19 Feb 2002 14:15:47 GMT) X-Complaints-To: newsmaster@news.cam.pace.co.uk NNTP-Posting-Date: 19 Feb 2002 14:15:47 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Xref: archiver1.google.com comp.lang.ada:20150 Date: 2002-02-19T14:15:47+00:00 List-Id: 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" wrote in message news:87adu57ht6.fsf@deneb.enyo.de... > Christoph Grein 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.