comp.lang.ada
 help / color / mirror / Atom feed
* using 'address to make indrect calls
@ 1999-06-29  0:00 Raymond C. Rawa
  1999-06-30  0:00 ` Pascal MALAISE
  1999-07-01  0:00 ` Robert A Duff
  0 siblings, 2 replies; 7+ messages in thread
From: Raymond C. Rawa @ 1999-06-29  0:00 UTC (permalink / raw)


I'm getting a scary warning message from VADSself for SPARC Solaris 2.3,
Version 6.2 when I compile the example below.

Can someone please explain what is meant by an "uplevel reference"?  And
when I should be concerned?

Thanks,
Raymond C. Rawa


***********************************  test.a 
***********************************

   1:generic 
   2:package G_PKG is
   3:end G_PKG;
   4:
   5:with system;
   6:package body G_PKG is
   7:   procedure a is
   8:      loc : SYSTEM.Address;
   9:   begin
  10:      loc := a'Address;
  11:   end a;
  12:end G_PKG;
  13:
  14:with G_PKG;
  15:procedure test is
  16:   package g is new G_PKG;
A --------------^
A:warning: using this address to make an indirect call may produce
unpredictable results if the subprogram makes uplevel references.
A:warning:	at line: 10 column: 14 within generic g_pkg in file:
/MV22/system/rawa/jass_3.2/jass_stubs.ss/dev.wrk/test/test.a
  17:begin
  18:   null;
  19:end test;




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~1999-07-02  0:00 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-06-29  0:00 using 'address to make indrect calls Raymond C. Rawa
1999-06-30  0:00 ` Pascal MALAISE
1999-06-30  0:00   ` Robert Dewar
1999-07-01  0:00   ` Raymond C. Rawa
1999-07-01  0:00 ` Robert A Duff
1999-07-01  0:00   ` Dale Stanbrough
1999-07-02  0:00     ` Robert A Duff

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