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.3 required=5.0 tests=BAYES_00,FREEMAIL_FROM, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b1208117d36fb121 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-03-07 06:15:08 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!cpk-news-hub1.bbnplanet.com!cambridge1-snf1.gtei.net!news.gtei.net!bos-service1.ext.raytheon.com!dfw-service2.ext.raytheon.com.POSTED!not-for-mail Message-ID: <3C877185.1CF93423@despammed.com> From: Wes Groleau Reply-To: wesgroleau@despammed.com X-Mailer: Mozilla 4.77 [en] (Windows NT 5.0; U) X-Accept-Language: en,es-MX,es,pt,fr-CA,fr MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: System.Address'Size - not a static integer expression? References: <665e587a.0203060957.3682edf7@posting.google.com> <5ee5b646.0203061721.36d42541@posting.google.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Thu, 07 Mar 2002 08:56:21 -0500 NNTP-Posting-Host: 151.168.144.162 X-Complaints-To: news@ext.ray.com X-Trace: dfw-service2.ext.raytheon.com 1015509400 151.168.144.162 (Thu, 07 Mar 2002 07:56:40 CST) NNTP-Posting-Date: Thu, 07 Mar 2002 07:56:40 CST Organization: Raytheon Company Xref: archiver1.google.com comp.lang.ada:20900 Date: 2002-03-07T08:56:21-05:00 List-Id: > > a.ads:12:33: static integer expression required here > > > > Is this a compiler bug? > > No, it is a correct diagnostic, this is not a static > expression. Vadim, I had the same misunderstanding at one time, so perhaps I can clarify: The 'Size attribute, even though "static" in nature much of the time is officially defined as non-static in the RM, and therefore not allowed where a "static" value is required. In other words, compilers are required to pretend that they don't know the value of 'Size at compile time. Sometimes the value is known, sometimes not, so it's simpler to pretend it's always unknown. -- Wes Groleau http://freepages.rootsweb.com/~wgroleau