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,a1bd0c210a306408,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-06-19 15:05:25 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!arclight.uoregon.edu!wn13feed!worldnet.att.net!204.127.198.203!attbi_feed3!attbi_feed4!attbi.com!sccrnsc03.POSTED!not-for-mail From: tmoran@acm.org Newsgroups: comp.lang.ada Subject: discriminants and derived types Q X-Newsreader: Tom's custom newsreader Message-ID: NNTP-Posting-Host: 12.234.13.56 X-Complaints-To: abuse@attbi.com X-Trace: sccrnsc03 1056060322 12.234.13.56 (Thu, 19 Jun 2003 22:05:22 GMT) NNTP-Posting-Date: Thu, 19 Jun 2003 22:05:22 GMT Organization: AT&T Broadband Date: Thu, 19 Jun 2003 22:05:22 GMT Xref: archiver1.google.com comp.lang.ada:39461 Date: 2003-06-19T22:05:22+00:00 List-Id: I have two compilers that accept this package spec, and one that complains about child3, though it accepts child1 and child2. Who's right and why? package testsd is type parent1(a,b:integer) is record null;end record; type child1(b:integer) is new parent1(a=>1,b=>b); type parent2(a,b:integer) is tagged null record; type child2(b:integer) is new parent2(a=>1,b=>b) with null record; type parent3(a,b:integer) is tagged null record; type child3(b:integer) is new parent3(a=>1,b=>b) with private; -- ^ error point private type child3(b:integer) is new parent3(a=>1,b=>b) with null record; end testsd; testsd.ads:10:33: Only static constraints allowed for parent discriminants in the partial view