comp.lang.ada
 help / color / mirror / Atom feed
* SunAda 1.1 bug
@ 1994-11-11  2:37 Ken Anderson
  0 siblings, 0 replies; only message in thread
From: Ken Anderson @ 1994-11-11  2:37 UTC (permalink / raw)


Hi,

My friend discovered a bug in SunAda 1.1(i), and we were wondering if anyone
knows if it has been fixed in a later patch. To quote my friend, the problem:

"Instances of unconstrained types with *dynamic* type constraints,
such as "I : T ( 1..N*10 );" or "I : TP := new T ( 1..N*10 )" are
not properly deallocated.  In the first case, the variable should be
deallocated when the variable leaves scope, in the second case,
deallocation should occur when UNCHECKED_DEALLOCATION is called.

This means that anywhere code of the form:
        declare
          I : T ( <dynamic bound> );
or
          I := new T ( <dynamic bound> );
appears, SunAda leaks."

What we are worried about is that we can't as yet upgrade to version 2.0,
since UCI hasn't made the switch to Solaris, so does anyone know if this
was fixed in version 1.1 of the compiler?

Thanks in advance,

Ken Anderson



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1994-11-11  2:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1994-11-11  2:37 SunAda 1.1 bug Ken Anderson

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