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: 103376,e89eefbf1ca016b,start X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nntp.club.cc.cmu.edu!feeder.erje.net!news.motzarella.org!motzarella.org!news.motzarella.org!not-for-mail From: Reto Buerki Newsgroups: comp.lang.ada Subject: Discriminant & interface not implemented by full type Date: Mon, 09 Mar 2009 18:21:34 +0100 Organization: A noiseless patient Spider Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: news.eternal-september.org U2FsdGVkX185D7l9P/bpUMgHd/JNdnvFdOMznjNyb2ySieitfakNZtg71SdlZIhgOnQhfNAXVSenaYiw7EovkywTkQqwSRWk1XL3ioUKuzgGhPkShdwa8RdVfoSlgVm9 X-Complaints-To: Please send complaints to abuse@motzarella.org with full headers NNTP-Posting-Date: Mon, 9 Mar 2009 17:21:40 +0000 (UTC) X-Auth-Sender: U2FsdGVkX18bXdQYIicc5TdkukNwqn55barI/Asl4qg= Cancel-Lock: sha1:p9FpotWydxjXve6BXcBOAuklFOE= User-Agent: Mozilla-Thunderbird 2.0.0.19 (X11/20090103) Xref: g2news2.google.com comp.lang.ada:4981 Date: 2009-03-09T18:21:34+01:00 List-Id: Hi everyone, I have the following simple test application: package Full_View is type Base_Type (Num : Integer) is tagged private; type Base_Interface is interface; type New_Type is new Base_Type (Num => 11) and Base_Interface with private; private type Base_Type (Num : Integer) is tagged record My_Number : Integer := Num; end record; type New_Type is new Base_Type (Num => 11) and Base_Interface with null record; end Full_View; Trying to compile this with gnat gcc 4.3 in Debian/Lenny results in the following error: full_view.ads:7:09: interface "Base_Interface" not implemented by full type (RM-2005 7.3 (7.3/2)) When removing the (Num => 11) discrimant initialization or the Base_Interface interface from the New_Type type extension, the code compiles fine. Is this a compiler bug? Seems to me that the consistency check of the partial and full view of a tagged type covering interfaces does not like discriminants. Thanks for your help. - reto