comp.lang.ada
 help / color / mirror / Atom feed
From: kanderso@mabillon.ICS.UCI.EDU (Ken Anderson)
Subject: SunAda 1.1 bug
Date: 11 Nov 94 02:37:19 GMT
Date: 1994-11-11T02:37:19+00:00	[thread overview]
Message-ID: <9411101835.aa15843@paris.ics.uci.edu> (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



                 reply	other threads:[~1994-11-11  2:37 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
replies disabled

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