comp.lang.ada
 help / color / mirror / Atom feed
From: tmoran@acm.org
Subject: Re: Why does this happen?
Date: Wed, 16 Oct 2002 07:32:55 GMT
Date: 2002-10-16T07:32:55+00:00	[thread overview]
Message-ID: <CC8r9.48754$gr6.50364@rwcrnsc53> (raw)
In-Reply-To: ki7r9.32$cX1.2997@read2.inet.fi

> > Gnat 3.14 on my Windows system compiles those lines without complaint.
>
> ... but not on my Gnat 3.14, Windows NT.
> I get the same error message as OP.
  Interesting.  The declarations compile OK.  An assignment to T.M
in the body causes the error message to appear in the spec.  Dropping
Func, the body:

package body test is

   junk:mtr_type(1 .. 2, 1 .. 2);

   procedure Proc(T : in out T_Typ) is
--   junk : mtr_type := T.M;
   begin
     T.M := junk;
   end Proc;
end test;

causes the error message, but if you switch which "junk" is commented out,
Gnat gives its "I crashed" message.  Clearly a confused compiler.



  reply	other threads:[~2002-10-16  7:32 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-15 22:12 Why does this happen? svesse
2002-10-16  0:46 ` Dennis Lee Bieber
2002-10-16  2:25 ` tmoran
2002-10-16  6:02   ` Anders Wirzenius
2002-10-16  7:32     ` tmoran [this message]
2002-10-16 13:44       ` Frank J. Lhota
2002-10-16  5:36 ` Simon Wright
2002-10-16 15:53   ` Jerry van Dijk
2002-10-17  9:50     ` Colin Paul Gloster
2002-10-17 12:08       ` Jerry van Dijk
2002-10-16 19:56 ` Gautier
replies disabled

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