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.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,7be3870dd9c9518f X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-12-15 11:04:03 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!logbridge.uoregon.edu!newsfeed.vmunix.org!newsfeed01.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mail From: Alfred Hilscher Newsgroups: comp.lang.ada Subject: Re: CONSTRAINT_ERROR - why? Date: Sun, 15 Dec 2002 20:00:06 +0100 Organization: T-Online Message-ID: <3DFCD136.A8F3760@t-online.de> References: <3DFB7841.F898C02@t-online.de> <3DFB9276.7070809@acm.org> <3DFC8B43.68D99D1C@t-online.de> <3DFCC831.2040103@acm.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: news.t-online.com 1039978896 07 4722 Ea86EyJSSFY87f 021215 19:01:36 X-Complaints-To: abuse@t-online.com X-Sender: 320001779794-0001@t-dialin.net X-Mailer: Mozilla 4.75 [de] (WinNT; U) X-Accept-Language: de Xref: archiver1.google.com comp.lang.ada:31856 Date: 2002-12-15T20:00:06+01:00 List-Id: Jeffrey Carter schrieb: > > > type X is mod 2 ** 8; > > Z : constant := X'Size / 8; > > is fine, but > > type X is mod 2 ** 8; > > type Y is record > A : X; > end record; > > Z : constant := Y'Size / 8; I tried to build this (with AdaGide 6.43): procedure Test3 is type X is mod 2 ** 8; Y : Integer; begin declare Value : constant := X'Size / 8; begin Y := Value; end; end Test3; The link failed: "undefined reference to `_ada_test3'" What happened here? Even a simple: procedure T is begin null; end T; failed.