From: "Y.Tomino" <demoonlit@panathenaia.halfmoon.jp>
Subject: Re: Pure, Storage_Size and Unchecked_Conversion
Date: Sun, 15 Jul 2007 10:30:29 -0700
Date: 2007-07-15T10:30:29-07:00 [thread overview]
Message-ID: <1184520629.360909.36040@g12g2000prg.googlegroups.com> (raw)
In-Reply-To: <f6unk4$gb8$1@jacob-sparre.dk>
On Jul 10, 10:35 am, "Randy Brukardt" <ra...@rrsoftware.com> wrote:
> You've gotten a whole bunch of answers, but I think the correct one has not
> be provided:
> it is a compiler bug and there should not be an error at F2.
Thank you, the situation became clear for me.
I was looking for the cause and found the correction point of gcc.
sem_ch3.adb
--------------
if Comes_From_Source (Id)
and then In_Pure_Unit
and then not In_Subprogram_Task_Protected_Unit
+ and then not No_Pool_Assigned (T)
then
Error_Msg_N
("named access types not allowed in pure unit",
N);
----------------
The compiler after changing passes the above-mentioned code
though I do not understand whether my correction is correct.
> I'd suggest that you (and others as well) should ask the people at AdaCore
> about what appear to be compiler bugs (especially in things changed by the
> Amendment, which are highly likely to be buggy as they are new) rather than
> confusing many with examples that seem to show non-existent limitations of
> Ada (as opposed to a particular compiler). OTOH, if you don't have an
> AdaCore contract, you won't get a timely answer from them, but I'd have to
> say that you get what you pay for in that case...
Oh....I cannot pay the cost so much.
prev parent reply other threads:[~2007-07-15 17:30 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-08 0:24 Pure, Storage_Size and Unchecked_Conversion Y.Tomino
2007-07-08 9:49 ` Georg Bauhaus
2007-07-08 10:41 ` Y.Tomino
2007-07-08 16:08 ` Martin Krischik
2007-07-09 13:31 ` Y.Tomino
2007-07-09 21:31 ` Georg Bauhaus
2007-07-10 1:35 ` Randy Brukardt
2007-07-10 8:30 ` Georg Bauhaus
2007-07-15 17:30 ` Y.Tomino [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox