This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] Fix fortran/25031, multiple allocations
- From: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- To: Thomas Koenig <Thomas dot Koenig at online dot de>
- Cc: fortran at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Wed, 1 Mar 2006 16:35:12 -0800
- Subject: Re: [patch] Fix fortran/25031, multiple allocations
- References: <20060301204022.GA7356@meiner.onlinehome.de>
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