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 : bug realloc-lhs


I'm using gfortran 4.6.3 (not 4.7 yet) on a linux 64bit. ?I think this is a special case in which the realloc-lhs doesn't work as expected. I can't tell if it's a regression or not. Patrice


----- Mail original -----
De?: Paul Richard Thomas <paul.richard.thomas@gmail.com>
À?: Steve Kargl <sgk@troutmask.apl.washington.edu>
Cc?: "patnel97269-gfortran@yahoo.fr" <patnel97269-gfortran@yahoo.fr>; "fortran@gcc.gnu.org" <fortran@gcc.gnu.org>
Envoyé le : Mercredi 28 mars 2012 8h58
Objet?: Re: bug realloc-lhs

You do not tell us which version of gfortran you are using nor on what
system you are running.? Without this information, we can say nothing
useful.

Paul

On Tue, Mar 27, 2012 at 9:20 PM, Steve Kargl
<sgk@troutmask.apl.washington.edu> wrote:
> On Tue, Mar 27, 2012 at 08:06:09PM +0100, patnel97269-gfortran@yahoo.fr wrote:
>> Hi all,
>>
>> I want to report a bug concerning the realloc-lhs, in case of a type containing a allocatable array.
>> For just an allocatable array it's ok ,everything works fine, when i deallocate the array in a function it's reallocated with the "=" statement;
>> But for a type i got a double free corruption, so i think there a test here to know if the array in the type is allocated or not. Note that if i don't allocate the array in the type at the beginning without deallocating it works.
>>
>> Here is the code .
>
> Looks like the type of problem, one might expect from
> invoking a function with side-effect.
>
> --
> Steve



-- 
The knack of flying is learning how to throw yourself at the ground and miss.
? ? ?? --Hitchhikers Guide to the Galaxy


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