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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,3b637950a34ec2d6,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-05-07 05:17:46 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: Mark.Doherty@uk.thalesgroup.com (Mark Doherty) Newsgroups: comp.lang.ada Subject: Discriminated record question Date: 7 May 2002 05:17:46 -0700 Organization: http://groups.google.com/ Message-ID: <2d87db3f.0205070417.7a50667b@posting.google.com> NNTP-Posting-Host: 195.173.4.13 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1020773866 6537 127.0.0.1 (7 May 2002 12:17:46 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 7 May 2002 12:17:46 GMT Xref: archiver1.google.com comp.lang.ada:23635 Date: 2002-05-07T12:17:46+00:00 List-Id: Why does the following raise a constraint error on the declaration of 'B'. I would not expect the declarations of 'A' or 'B' to raise a constraint error. If the compiler is right what, is the subtle difference between them that allows 'A' not to raise the constraint error. I am using Rational 3.2 compiler (PowerPC and Sun Solaris) procedure Test is type A_Type (Text_Size : Natural := 0) is record Text : String (1 .. 0); end record; A : A_Type; type B_Type (Text_Size : Natural := 0) is record Text : String (1 .. Text_Size); end record; B : B_Type; begin null; end Test;