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,28dcfc3d6dc519b8 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-02-14 06:01:27 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news-was.dfn.de!news-koe1.dfn.de!news.rwth-aachen.de!not-for-mail From: "Alexander Boucke" Newsgroups: comp.lang.ada Subject: Re: Renaming subprogram and default_expression Date: Thu, 14 Feb 2002 15:01:21 +0100 Organization: Lehr- und Forschungsgebiet f. Mechanik Message-ID: References: <87sn84i80s.fsf@deneb.enyo.de> NNTP-Posting-Host: 134.130.177.111 X-Trace: nets3.rz.RWTH-Aachen.DE 1013695286 27092 134.130.177.111 (14 Feb 2002 14:01:26 GMT) X-Complaints-To: abuse@rwth-aachen.de NNTP-Posting-Date: 14 Feb 2002 14:01:26 GMT X-Newsreader: Microsoft Outlook Express Unix 5.00.2013.1312 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2013.1312 Xref: archiver1.google.com comp.lang.ada:20003 Date: 2002-02-14T14:01:26+00:00 List-Id: Florian Weimer wrote in message <87sn84i80s.fsf@deneb.enyo.de>... >Christoph Grein writes: > >> So it looks OK. Did some compiler complain? > >GNAT 3.14p and GNAT 5.00w, both with the same, confusing error >message: 'default expression for "X" does not match'. I had the same Error message trying to compile the strings_edit package from D. Kazakov (could be found on AdaPower.com). The package compiled well with gnat3.13p and there seems to be no error (spec and body have the same default expressions). As in this example, there is a rename envolved and a default-expression for a selfdefined type. There are no problems with default expressions for booleans. Should this be an error of gnat-3.14p? That's why I stayed with gnat-3.13p so far. Regrards, Alexander P.S.: When trying to compile my program with -gnatN, the 3.14.p-compiler is erroneous. Has anybody else noticed this?