From: Ole-Hjalmar Kristensen <ole-hjalmar.kristensen@substitute_employer_here.com>
Subject: sizetest.ads:10:28 non-static expression used in number declaration
Date: 29 Mar 2004 13:16:29 +0200
Date: 2004-03-29T11:18:10+00:00 [thread overview]
Message-ID: <wvbrbrmfucmq.fsf@europa1.Norway.Sun.COM> (raw)
Gnat 3.15p throws out the following error message when confronted with this program:
sizetest.ads:10:28: non-static expression used in number declaration
Kind of weird. If I change constant to constant Integer it compiles without errors.
Any reasonable explanation or compiler bug?
Same error message if I use Foo'size instead.
package Sizetest is
type Foo is record
X : Integer;
Y : Integer;
end record;
F : Foo;
Foo_Size : constant := F'Size;
end Sizetest;
--
C++: The power, elegance and simplicity of a hand grenade.
next reply other threads:[~2004-03-29 11:16 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-29 11:16 Ole-Hjalmar Kristensen [this message]
2004-03-29 13:11 ` sizetest.ads:10:28 non-static expression used in number declaration Frank J. Lhota
-- strict thread matches above, loose matches on Subject: below --
2004-03-29 11:13 Ole-Hjalmar Kristensen
2004-03-29 16:31 ` Robert I. Eachus
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox