This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [patch, fortran] Fix PR 27470, multiple allocations of derived types
- From: Erik Edelmann <erik dot edelmann at iki dot fi>
- 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, 10 May 2006 13:21:49 +0300
- Subject: Re: [patch, fortran] Fix PR 27470, multiple allocations of derived types
- References: <20060509213404.GA31827@meiner.onlinehome.de>
On Tue, May 09, 2006 at 11:34:04PM +0200, Thomas Koenig wrote:
> Index: trans-array.c
> ===================================================================
> --- trans-array.c (revision 113660)
> +++ trans-array.c (working copy)
> @@ -3068,13 +3068,25 @@ gfc_array_allocate (gfc_se * se, gfc_exp
> gfc_expr **upper;
> gfc_ref *ref;
> int allocatable_array;
> + int must_be_pointer;
>
> ref = expr->ref;
>
> + /* In Fortran 95, components can only contain pointers, so that,
> + in ALLOCATE (foo%bar(2)), bar must be a ponter component.
^^^^^^
pointer
Erik