[patch] Fix fortran/25031, multiple allocations

Steve Kargl sgk@troutmask.apl.washington.edu
Thu Mar 2 00:35:00 GMT 2006


On Wed, Mar 01, 2006 at 09:40:22PM +0100, Thomas Koenig wrote:
> :ADDPATCH fortran:
> 
> here is a fix for PR 25031.  The problem here was that we used
> to be capable of allocating an allocatable array twice without
> intermediate deallocation, which should raise an error.
> 

Thomas, 

Are you saying that this program should fail?

program a
  real, allocatable :: x(:)
  allocate(x(4))
  allocate(x(3))
end program a

-- 
Steve



More information about the Fortran mailing list