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,CP1252 X-Google-Thread: 103376,4f40de4bb311cbe6 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-07-16 10:23:54 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!arclight.uoregon.edu!wn13feed!wn12feed!worldnet.att.net!204.127.198.203!attbi_feed3!attbi_feed4!attbi.com!rwcrnsc54.POSTED!not-for-mail Message-ID: <3F158A28.4030603@attbi.com> From: "Robert I. Eachus" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.2) Gecko/20021120 Netscape/7.01 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Gnat Bug detected? References: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit NNTP-Posting-Host: 66.31.71.243 X-Complaints-To: abuse@comcast.net X-Trace: rwcrnsc54 1058376233 66.31.71.243 (Wed, 16 Jul 2003 17:23:53 GMT) NNTP-Posting-Date: Wed, 16 Jul 2003 17:23:53 GMT Organization: Comcast Online Date: Wed, 16 Jul 2003 17:23:53 GMT Xref: archiver1.google.com comp.lang.ada:40344 Date: 2003-07-16T17:23:53+00:00 List-Id: Timo Warns wrote: > Can someone confirm following bug? > > > --------- test.ads --------- > > with System.Storage_Elements; use System.Storage_Elements; > package Test is > type A is > record > I: Integer; > end record; > B: A; > J: Integer renames B.I; > for J'Address use To_Address(0); > end Test; > > --------------------------- You certainly should get a meaningful error message, so report this to ACT. But if you expect the compiler to be "fixed" so that this compiles, think again. The best you can expect is to "fix" the program so that the value 0 is non-static, and get an error at run-time. -- Robert I. Eachus �In an ally, considerations of house, clan, planet, race are insignificant beside two prime questions, which are: 1. Can he shoot? 2. Will he aim at your enemy?� -- from the Laiden novels by Sharon Lee and Steve Miller.