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-Thread: a07f3367d7,4ce5890331a5b529 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!feeder.news-service.com!newsfeed.straub-nv.de!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Discriminants of tagged types Date: Wed, 27 Oct 2010 22:28:02 +0100 Organization: A noiseless patient Spider Message-ID: References: <14314714-e92c-4036-9cbb-da8e72489261@h7g2000yqn.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: mx03.eternal-september.org; posting-host="dFCm8HWntFqmDIilBLqEJQ"; logging-data="15006"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18E6RWmi81noGkhWoApqffPoB07+81Be8c=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (darwin) Cancel-Lock: sha1:SjqzVq966SMIdTOe3Fp9CLR2p4c= sha1:uGiyj+RRfK+/OUj2rCIHvH1wZEo= Xref: g2news1.google.com comp.lang.ada:14868 Date: 2010-10-27T22:28:02+01:00 List-Id: Robert A Duff writes: > That doesn't sound right. What does your example look like, and what > compiler compiled it without error? This compiles without complaint with GNAT GPL 2010 & GCC 4.5.0: package Privately_Tagged is type T (X : Integer := 42) is private; private type T (X : Integer := 42) is tagged null record; end Privately_Tagged; (and so does your example).