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: [patch, fortran] Fix PR 27470, multiple allocations of derived types


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


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