From: Florian Weimer <fw@deneb.enyo.de>
Subject: Re: Renaming subprogram and default_expression
Date: Thu, 14 Feb 2002 17:35:19 +0100
Date: 2002-02-14T16:34:21+00:00 [thread overview]
Message-ID: <87r8noggxk.fsf@deneb.enyo.de> (raw)
In-Reply-To: 87vgd0gin8.fsf@deneb.enyo.de
Florian Weimer <fw@deneb.enyo.de> writes:
> I don't know why the bug doesn't occur with string types. Oh well.
I think I'm now on the right track.
GNAT ends up with something like this internally:
procedure defaults is
procedure original (x : integer);
procedure renamed (x : integer := "-" (1));
procedure renamed (x : integer := "-" (1));
procedure renamed (x : integer := -1) is -- -1 is literal here
begin
original (x);
end renamed;
procedure original (x : integer) is
begin
null;
end original;
begin
null;
end defaults;
In this case, the error message is indeed appropriate.
next prev parent reply other threads:[~2002-02-14 16:35 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-02-14 11:52 Renaming subprogram and default_expression Christoph Grein
2002-02-14 12:04 ` Florian Weimer
2002-02-14 12:46 ` Lutz Donnerhacke
2002-02-14 13:15 ` Florian Weimer
2002-02-14 14:01 ` Alexander Boucke
2002-02-14 15:18 ` Florian Weimer
2002-02-14 15:46 ` Alexander Boucke
2002-02-14 15:58 ` Florian Weimer
2002-02-14 16:24 ` Alexander Boucke
2002-02-14 16:31 ` Larry Hazel
2002-02-14 16:35 ` Florian Weimer [this message]
2002-02-15 8:40 ` Lutz Donnerhacke
-- strict thread matches above, loose matches on Subject: below --
2002-02-15 5:38 Christoph Grein
2002-02-14 10:51 Florian Weimer
2002-02-14 11:31 ` sk
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox