This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
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