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=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,814577151c84863d,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-03-16 05:47:35 PST Path: archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed.stueberl.de!proxad.net!usenet-fr.net!enst.fr!melchior!cuivre.fr.eu.org!melchior.frmug.org!not-for-mail From: Lionel.DRAGHI@fr.thalesgroup.com Newsgroups: comp.lang.ada Subject: which compiler is right? Date: Tue, 16 Mar 2004 14:44:27 +0100 Organization: Cuivre, Argent, Or Message-ID: NNTP-Posting-Host: lovelace.ada-france.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: melchior.cuivre.fr.eu.org 1079444715 45999 212.85.156.195 (16 Mar 2004 13:45:15 GMT) X-Complaints-To: usenet@melchior.cuivre.fr.eu.org NNTP-Posting-Date: Tue, 16 Mar 2004 13:45:15 +0000 (UTC) To: comp.lang.ada@ada-france.org Return-Path: X-Mailer: Internet Mail Service (5.5.2653.19) X-Virus-Scanned: by amavisd-new-20030616-p7 (Debian) at ada-france.org X-BeenThere: comp.lang.ada@ada-france.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Gateway to the comp.lang.ada Usenet newsgroup" List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Xref: archiver1.google.com comp.lang.ada:6341 Date: 2004-03-16T14:44:27+01:00 Could someone, please, tell me if this code compile with other compilers than GNAT and ObjectAda? Or even better, is ObjectAda right in rejecting it? Thanks in advance -- Lionel Draghi -- --------------------------------------------------------------- package Pkg1 is type T_Event is abstract tagged null record; function Priority (Event : T_Event) return Natural is abstract; end Pkg1; -- --------------------------------------------------------------- with Pkg1; generic type T_Event (<>) is new Pkg1.T_Event with private; package Pkg2 is function Priority (Event : in T_Event) return Natural; -- OK for GNAT 3.16a (20030120) -- KO for ObjectAda (tm) Version 7.2.1 : -- -- 7 function Priority (Event : in T_Event) return Natural; -- * -- *****Error: LRM:3.9.2(13) a primitive subprogram of a tagged type may not be -- ***** declared after the type is frozen end Pkg2;