comp.lang.ada
 help / color / mirror / Atom feed
* Simple 4 lines hang code using Ravenscar. Its this a Gnat bug?
@ 2019-02-22  8:56 Daniel
  2019-02-22 10:01 ` Niklas Holsti
  2019-02-22 10:17 ` AdaMagica
  0 siblings, 2 replies; 6+ messages in thread
From: Daniel @ 2019-02-22  8:56 UTC (permalink / raw)



Hello,
I found something strange using Ravenscar with Gnat. The code hangs without any explanation when i try to declare a task type...¡even if i dont use any variable of this type!!. If i quit the Ravenscar pragma it works well. This is the code:

--MAIN PROCEDURE
with tmr;
with ada.Text_IO; use ada.Text_IO;
procedure main is
begin
   put_line("Let's hang..");
end main;

--- TMR.ADS FILE
pragma Profile (Ravenscar);
package Tmr is
   task type K_Timer is
   end K_Timer;
end Tmr;

-- TMR.ADB FILE
package body Tmr is
   task body K_Timer  is
   begin
     null;
   end K_Timer;
end Tmr;


Im using GNAT GPL 2017 for windows. 
Thank you and best regards.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2019-02-22 12:55 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-22  8:56 Simple 4 lines hang code using Ravenscar. Its this a Gnat bug? Daniel
2019-02-22 10:01 ` Niklas Holsti
2019-02-22 12:48   ` Daniel
2019-02-22 10:17 ` AdaMagica
2019-02-22 12:55   ` Simon Wright
2019-02-22 12:55   ` Simon Wright

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