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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,bc385bfdaf9461e6 X-Google-Attributes: gid103376,public From: dewar@cs.nyu.edu (Robert Dewar) Subject: Re: GNAT 3.03 and Address Clauses Date: 1996/05/06 Message-ID: #1/1 X-Deja-AN: 153265839 references: <31850E0F.136C@software.org> <4mfob7$fbc@dfw.dfw.net> organization: Courant Institute of Mathematical Sciences newsgroups: comp.lang.ada Date: 1996-05-06T00:00:00+00:00 List-Id: Dave Weller said "The solution is pretty easy, GNAT's giving you a pretty strong hint: Device_Address : constant System.Address := System.Storage_Elements.To_Address(16#FFFF_0000#); Device_Data : Device_Data_Type; for Device_Data'Address use Device_Address;" What happens here is that informally the To_Address call seems like a static expression, even though it is not technially one. On the list to do is to specially allow this particular non-static expression in this context to reduce the number of cases of this kind.