This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Re : Re : bug realloc-lhs


On Wed, Mar 28, 2012 at 08:26:09PM +0100, patnel97269-gfortran@yahoo.fr wrote:
> The function have no side effect,

It has a side-effect.  toto() is explicitly deallocating
memory of the actual argument p1 associated with the dummy
argument dd.

> and the user produces this function especiallly for the
> case. ?Nothing prevent the user from deallocating an array
> of the type inside the function.?

Nothing prevents a user from point a gun at his foot
and pulling a trigger.  

-- 
Steve


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]