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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham 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 04:01:02 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!colt.net!newsfeed00.sul.t-online.de!t-online.de!newsfeed.r-kom.de!newsfeed.stueberl.de!newsfeed.vmunix.org!newsfeed2.easynews.net!easynews.net!news.cid.net!news.enyo.de!not-for-mail From: Florian Weimer Newsgroups: comp.lang.ada Subject: Re: Unchecked_Deallocation and Constraint_Error Date: Tue, 19 Feb 2002 12:59:54 +0100 Organization: Enyo -- not your organization Message-ID: <87y9hp7kcl.fsf@deneb.enyo.de> References: NNTP-Posting-Host: deneb.enyo.de Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: cygnus.enyo.de 1014119940 15470 212.9.189.171 (19 Feb 2002 11:59:00 GMT) X-Complaints-To: abuse@enyo.de NNTP-Posting-Date: 19 Feb 2002 11:59:00 GMT Cancel-Lock: sha1:rhhXMvxxkP/kWhwe4nDRIaoi8LM= Xref: archiver1.google.com comp.lang.ada:20119 Date: 2002-02-19T11:59:00+00:00 List-Id: Michal Nowikowski writes: > I've got some code like that: > > ... > Cmd : Integer_Array_Access := new Integer_Array(1..1); > ... > Free(Cmd); > Cmd(1) := 1; > ... > > Program should throw exception Constraint_Error, but it only > hangs at instruction Cmd(1) := 1; (but doesn't quit). The Reference Manual is quite clear (section 13.11.2): | _Erroneous Execution_ | | 16. Evaluating a name that denotes a nonexistent object is erroneous. You cannot expect that a Constraint_Error exception is raised in this case, unless your compiler documentation guarantees this.