[patch, fortran] PR 25031

FX Coudert fxcoudert@gmail.com
Wed Mar 29 20:20:00 GMT 2006


> 2006-03-29  Thomas Koenig  <Thomas.Koenig@online.de>
> 
> 	PR fortran/25031
> 	* runtime/memory.c (allocate_array):  If stat is present and
> 	the variable is already allocated, free the variable, do
> 	the allocation and set stat.
> 	(allocate_array_64):  Likewise.  Whitespace fix.
> 
> 2006-03-29  Thomas Koenig  <Thomas.Koenig@online.de>
> 
> 	PR fortran/25031
> 	* gfortran.dg/multiple_allocation_1.f90:  Check that the
> 	size has changed after a re-allocation with stat.

OK, except for

>    allocate(a(4))
>    ! This should set the stat code without changing the size
> -  allocate(a(4),stat=i)
> +  allocate(a(3),stat=i)

The comment needs to be changed :)

FX



More information about the Fortran mailing list