comp.lang.ada
 help / color / mirror / Atom feed
From: "Theodore E. Dennison" <dennison@escmail.mmc.orl.com>
Subject: Re: Memory overwrite?
Date: 30 Jan 1995 17:06:07 GMT
Date: 1995-01-30T17:06:07+00:00	[thread overview]
Message-ID: <3gj69v$1he@theopolis.orl.mmc.com> (raw)
In-Reply-To: 3g2stg$i0u@miranda.gmrc.gecm.com

bill@valiant (R.A.L Williams) wrote:
>
> In article <1995Jan18.182039.7324@wdl.loral.com> Mark Biggar wrote:
> 
> [original post and a reply deleted]
> 
> : Actually the most likely reason for this is an uninitialized variable used

> OK, I can see how an optimiser *could* do that, and, of course, RM9x
> section 3.3.1 says that 'There is no implicit initial value defined
> for a scalar subtype ... might have a value which does not belong to
> that subtype' (para 21). I'm a little suprised, however, that the
> compiler isn't expected to perform a simple data flow analysis and
> generate a warning about use of uninitialised variables. You're quite
> right though, I can't find anything in RM9x which says it should, and
> I'm pretty sure there was nothing in the Ada83 LRM.

You are right that Ada 83 did not REQUIRE this. Howerver, all four Ada
compilers that I have used generated warnings when uninitialized
variables were read or passed as "in" or "in out" parameters. Unless
you are the type that ignores compiler warnings, this situation is 
unlikely to arise. It is still worth checking out, but I would hardly
call it the "most likely reason" for the crashing behavior.  My vote
is still on misuse of either a "for use at" clause or address-access
UNCHECKED_CONVERSION.

Did you ever figure it out, Mark?

T.E.D.




  parent reply	other threads:[~1995-01-30 17:06 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-01-24 12:47 Memory overwrite? R.A.L Williams
1995-01-25 16:31 ` Robert A Duff
1995-01-25 19:01 ` Tucker Taft
1995-01-25 21:24 ` Robert Dewar
1995-01-30 17:06 ` Theodore E. Dennison [this message]
1995-02-01 12:25   ` Robert Dewar
  -- strict thread matches above, loose matches on Subject: below --
1995-01-26 13:05 R.A.L Williams
1995-01-27 14:01 ` Robert A Duff
1995-01-28 22:49   ` Robert Dewar
1995-01-30 14:16     ` Robert A Duff
1995-02-01 23:00       ` Matt Kennel
1995-01-28  5:54 ` Robert Dewar
1995-01-13  8:35 Rick Wouters
     [not found] ` <3fe5cp$fnq@theopolis.orl.mmc.com>
1995-01-18 18:20   ` Mark A Biggar
1995-01-20  5:19     ` Robert Dewar
replies disabled

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