From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.5-pre1 Date: 8 Nov 91 20:58:32 GMT From: convex!pelakh@uunet.uu.net (Boris Pelakh) Subject: Is this legal ? Message-ID: <1991Nov08.205832.26958@convex.com> List-Id: The following procedure produces a warning at compile time saying that the declaration of NULL_LINE is exceeding the storage limit of the implementation. At runtime, I get a storage error. It looks like the unconstrined declare is causing an attempt to allocate a STRING(1..MAX_INT), even though I would expect it to only declare a STRING(1..10). The RM does not explain this particular case. Any ideas ? -------------- procedure BROKE is type VAR_LINE(LENGTH : INTEGER := 10) is record IMAGE : STRING(1..LENGTH); end record; NULL_LINE : VAR_LINE; begin null; end BROKE; -------------- -- Boris Pelakh Development Software Test pelakh@convex.com "You can see me tonight with an illegal smile. Doesn't cost very much, but it lasts a long while ..." - John Prine, "Illegal Smile"