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 08:01:05 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!colt.net!newsfeed00.sul.t-online.de!t-online.de!newsfeed.r-kom.de!newsfeed.stueberl.de!newsfeed.vmunix.org!newsfeed2.easynews.net!easynews.net!news.cid.net!news.enyo.de!not-for-mail From: Florian Weimer Newsgroups: comp.lang.ada Subject: Re: Renaming subprogram and default_expression Date: Thu, 14 Feb 2002 16:58:19 +0100 Organization: Enyo -- not your organization Message-ID: <87vgd0gin8.fsf@deneb.enyo.de> References: <87sn84i80s.fsf@deneb.enyo.de> <87zo2cgkib.fsf@deneb.enyo.de> NNTP-Posting-Host: deneb.enyo.de Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: cygnus.enyo.de 1013702242 10219 212.9.189.171 (14 Feb 2002 15:57:22 GMT) X-Complaints-To: abuse@enyo.de NNTP-Posting-Date: 14 Feb 2002 15:57:22 GMT Cancel-Lock: sha1:R4CID8Hs5KHAoc+jyilJBybOGJo= Xref: archiver1.google.com comp.lang.ada:20007 Date: 2002-02-14T15:57:22+00:00 List-Id: "Alexander Boucke" writes: > Type roman is range 1..3999; is defined in strings edit.ads Note, > that gnat3.14p does not complain about the preset values for the > booelan arguments, only for the new integer type. If I comment these > default values, the program compiles. This seems to be the same > error as in the short testprog. starting this thread: A new > integer-type was used there, too. You can eliminate the integer type. The minimal test case for GCC 3.1 is: procedure Defaults is procedure Original (X : Integer); procedure Renamed (X : Integer := -1); procedure Renamed (X : Integer := -1) renames Original; procedure Original (X : Integer) is begin null; end Original; begin null; end Defaults; (I wouldn't have thought that such basic things are broken, that's why I had not tried the default Integer type.) I don't know why the bug doesn't occur with string types. Oh well.