comp.lang.ada
 help / color / mirror / Atom feed
From: Natasha Kerensikova <lithiumcat@gmail.com>
Subject: Re: My first compiler bug: work around or redesign?
Date: Wed, 28 Mar 2012 15:30:41 +0000 (UTC)
Date: 2012-03-28T15:30:41+00:00	[thread overview]
Message-ID: <slrnjn6bki.1lme.lithiumcat@sigil.instinctive.eu> (raw)
In-Reply-To: 2229037.332.1332788108220.JavaMail.geo-discussion-forums@vbht7

On 2012-03-26, Ludovic Brenta <ludovic@ludovic-brenta.org> wrote:
> Report it to the FSF at http://gcc.gnu.org/bugzilla. IMHO, a public bug
> database is worth a thousand private ones.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52752

Below is the minimal testcase I have worked out.

Is there anything I should do at this point? Or will everything leading
to a fix be handled from there?

Thanks for your help,
Natasha




package Test is

   type Callback is access procedure (State : in String);

   procedure Sample
     (State : in String;
      Action : in not null Callback);

end Test;

package body Test is

   procedure Simple_Init;

   generic
      with procedure Init;
   procedure Generic_Sample
     (State : in String;
      Action : in not null Callback);



   procedure Simple_Init is
   begin
      null;
   end Simple_Init;


   procedure Generic_Sample
     (State : in String;
      Action : in not null Callback) is
   begin
      Init;
      Action.all (State);
   end Generic_Sample;


   procedure Sample_Instance is new Generic_Sample (Simple_Init);

   procedure Sample
     (State : in String;
      Action : in not null Callback)
      renames Sample_Instance;

end Test;

with Ada.Text_IO;
with Test;

procedure Testcase is
   State : constant String := "Testcase";
begin
   Test.Sample (State, Ada.Text_IO.Put_Line'Access);
end Testcase;



  reply	other threads:[~2012-03-28 15:30 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-23 16:29 My first compiler bug: work around or redesign? Natasha Kerensikova
2012-03-23 17:51 ` Ludovic Brenta
2012-03-23 21:20   ` Natasha Kerensikova
2012-03-23 17:56 ` Jeffrey Carter
2012-03-23 18:22 ` Jeffrey Carter
2012-03-23 21:23   ` Natasha Kerensikova
2012-03-23 22:54     ` Jeffrey Carter
2012-03-23 18:29 ` Simon Wright
2012-03-23 18:37 ` Dmitry A. Kazakov
2012-03-23 18:48   ` Robert A Duff
2012-03-23 21:40     ` Natasha Kerensikova
2012-03-24  0:04       ` Georg Bauhaus
2012-03-24  9:50         ` Natasha Kerensikova
2012-03-23 21:34   ` Natasha Kerensikova
2012-03-23 19:04 ` Jeffrey Carter
2012-03-26 18:15 ` Natasha Kerensikova
2012-03-26 18:43   ` Simon Wright
2012-03-26 18:55   ` Ludovic Brenta
2012-03-28 15:30     ` Natasha Kerensikova [this message]
2012-03-29  8:25       ` Ludovic Brenta
2012-03-30 23:42         ` onox
2012-04-02 20:51           ` Ludovic Brenta
2012-04-03  2:50             ` onox
2012-03-26 21:47   ` Georg Bauhaus
2012-03-27  5:34     ` Per Sandberg
2012-03-27  7:30     ` Dmitry A. Kazakov
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox