comp.lang.ada
 help / color / mirror / Atom feed
From: dewar@merv.cs.nyu.edu (Robert Dewar)
Subject: Re: Elaboration_check For Instantiations
Date: 1997/10/27
Date: 1997-10-27T00:00:00+00:00	[thread overview]
Message-ID: <dewar.877997986@merv> (raw)
In-Reply-To: 1997Oct27.221500.1918@nosc.mil


Charles said

<<     One of the compilers that I thought accepted this construct actu-
ally disallows it, but in a non-standard manner.  (This is a very highly
respected Ada 83 compiler.)  It compiles that entire package, specifica-
tion and body, with no warnings.  No "Execution of this construct will
cause Program_error to be raised."  However, when you try to link the
programs, you're told that the specification is obsolete.  In other
words, the spec compiles o. k., but compiling the body obsoletes the
spec.  Of course, recompiling the spec will obsolete the body, etc.
>>

This is non-conforming behavior. It should be reported as a bug if the
vendor is still supporting the compiler. There is nothing illegal about
this construct (the warning that GNAT gives is of course just that, a 
warning).

This program *must* execute, and *must* raise Program_Error.





  reply	other threads:[~1997-10-27  0:00 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-10-23  0:00 Elaboration_check For Instantiations Charles H. Sampson
1997-10-23  0:00 ` Charles H. Sampson
1997-10-24  0:00   ` Tucker Taft
1997-10-24  0:00     ` Robert Dewar
1997-10-27  0:00       ` Charles H. Sampson
1997-10-27  0:00         ` Robert Dewar
1997-10-28  0:00           ` Charles H. Sampson
1997-10-28  0:00             ` Keith Thompson
1997-10-28  0:00               ` Charles H. Sampson
1997-10-29  0:00                 ` Robert Dewar
1997-10-29  0:00                   ` Charles H. Sampson
1997-10-29  0:00                 ` W. Wesley Groleau x4923
1997-10-29  0:00                   ` Tom Moran
1997-10-30  0:00                     ` Larry Kilgallen
1997-10-30  0:00                   ` Charles H. Sampson
     [not found]                   ` <345774b3.1434102@santaclara01.news.internex.net>
1997-10-30  0:00                     ` Charles H. Sampson
1997-10-29  0:00             ` Robert Dewar
1997-10-27  0:00     ` Charles H. Sampson
1997-10-27  0:00       ` Robert Dewar [this message]
1997-10-24  0:00 ` 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