From: Yves Bailly <kafka.fr@laposte.net>
Subject: Re: Help: program won't ends (GNAT)
Date: Mon, 22 Jan 2007 20:25:01 +0100
Date: 2007-01-22T20:25:22+01:00 [thread overview]
Message-ID: <45b50fa1$0$8261$426a74cc@news.free.fr> (raw)
In-Reply-To: 45b4726b$0$31548$39db0f71@news.song.fi
Niklas Holsti wrote:
> Yves Bailly wrote:
>> Hello all,
>>
>> I'm a bit confused by the following behaviour. Please consider this
>> simple program (a much larger one reduced to its minimum):
> [snip]
>> When I run the program, both strings are displayed, but the program
>> doesn't exit: it just keeps running, eating 75% of my CPU power
> [snip]
>> Compiled by GNAT-2006 (the latest release) or by the GNAT provided with
>> GCC 4.1, both give the same behaviour.
>
> I observe the same behaviour on gnat 3.15p, Debian Linux. Seems to be a
> GNAT bug of respectable age.
>
Interestingly, if you move the initialization into the procedure's body:
[...]
type Rec is
record
f: A_2;
end record;
var: Rec;
begin
var.f := (others => (others => Null_Unbounded_String));
[...]
...then it works. Reading other posts, it definitely looks like a bug
in the compiler. Thanks to all for your answers.
Regards,
--
(o< | Yves Bailly : http://kafka-fr.net | -o)
//\ | Linux Dijon : http://www.coagul.org | //\
\_/ | | \_/`
next prev parent reply other threads:[~2007-01-22 19:25 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-21 23:17 Help: program won't ends (GNAT) Yves Bailly
2007-01-22 8:14 ` Niklas Holsti
2007-01-22 10:54 ` Georg Bauhaus
2007-01-22 19:25 ` Yves Bailly [this message]
2007-01-23 19:05 ` Björn Persson
2007-01-25 0:44 ` Jeffrey Creem
2007-01-22 9:51 ` Brian May
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox