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-Thread: 103376,be7fa91648ac3f12 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!news.glorb.com!news-in.ntli.net!newsrout1-win.ntli.net!ntli.net!newspeer1-win.ntli.net!newsfe5-gui.ntli.net.POSTED!53ab2750!not-for-mail From: "Dr. Adrian Wrigley" Subject: Re: Large arrays (again), problem case for GNAT User-Agent: Pan/0.14.2 (This is not a psychotic episode. It's a cleansing moment of clarity.) Message-Id: Newsgroups: comp.lang.ada References: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Date: Wed, 13 Apr 2005 14:20:06 GMT NNTP-Posting-Host: 81.100.88.147 X-Complaints-To: http://www.ntlworld.com/netreport X-Trace: newsfe5-gui.ntli.net 1113402006 81.100.88.147 (Wed, 13 Apr 2005 15:20:06 BST) NNTP-Posting-Date: Wed, 13 Apr 2005 15:20:06 BST Organization: ntl Cablemodem News Service Xref: g2news1.google.com comp.lang.ada:10422 Date: 2005-04-13T14:20:06+00:00 List-Id: On Wed, 13 Apr 2005 15:52:57 +0200, Duncan Sands wrote: >> Can someone test this on later versions of GNAT please? > > gcc version 3.4.4 20050328 (prerelease) for GNAT Pro 5.04w (20050326) > > $ ./testbug > First element attribute 1 > Last element attribute 210000000 > > raised CONSTRAINT_ERROR : testbug.adb:39 access check failed Sorry guys, forgot a couple of things: Didn't put in a check for malloc failing... doesn't everyone have 6GB of RAM+SWAP nowadays? (Presumably malloc returned NULL) Didn't highlight the mutilated email address (one uk is enough!) -- Adrian