sizetest.ads:10:28 non-static expression used in number declaration
From: Ole-Hjalmar Kristensen (ole-hjalmar.kristensen_at_substitute_employer_here.com)
Date: 03/29/04
- Next message: Ole-Hjalmar Kristensen: "sizetest.ads:10:28 non-static expression used in number declaration"
- Previous message: Lionel.DRAGHI_at_fr.thalesgroup.com: "RE: -gnatE?"
- Next in thread: Frank J. Lhota: "Re: sizetest.ads:10:28 non-static expression used in number declaration"
- Reply: Frank J. Lhota: "Re: sizetest.ads:10:28 non-static expression used in number declaration"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 29 Mar 2004 13:16:29 +0200
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 message: Ole-Hjalmar Kristensen: "sizetest.ads:10:28 non-static expression used in number declaration"
- Previous message: Lionel.DRAGHI_at_fr.thalesgroup.com: "RE: -gnatE?"
- Next in thread: Frank J. Lhota: "Re: sizetest.ads:10:28 non-static expression used in number declaration"
- Reply: Frank J. Lhota: "Re: sizetest.ads:10:28 non-static expression used in number declaration"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|