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,19bd7ab0daefd69b,start X-Google-Attributes: gid103376,public From: Markus Kuhn Subject: Storage_Error with parameterized records Date: 1998/07/03 Message-ID: <359D3A0C.13AF4C53@cl.cam.ac.uk>#1/1 X-Deja-AN: 368487754 Content-Transfer-Encoding: 7bit Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Organization: Cambridge University, Computer Laboratory Newsgroups: comp.lang.ada Date: 1998-07-03T00:00:00+00:00 List-Id: May be I have something severely missunderstood, but I have no idea, why the declaration subtype Correlation_Coefficient is Float; type CMatrix is array (Natural range <>, Natural range <>) of Correlation_Coefficient; type Correlation_Matrix(Last_Line : Natural := 0) is record Mat : CMatrix(0 .. Last_Line, 0 .. Last_Line); end record; causes the following warnings (and at runtime the promised Storage_Error): warning: Storage_Error will be raised at run-time warning: creation of object of this type may raise Storage_Error I had hoped this code was sufficiently close to John Barnes Square example in chapter 16 of Programming in Ada 95 and I also didn't find a restriction in the RM that explained this warning. And idea? Markus -- Markus G. Kuhn, Security Group, Computer Lab, Cambridge University, UK email: mkuhn at acm.org, home page: