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] | |
:ADDPATCH fortran:
Here is a patch to implement support for ALLOCATABLE components
of derived types (part of TR15581 and F2003). It adds a new
field 'allocatable' to the struct gfc_component, and a few bits
and pieces of code to take this new possibility into account.
Bubblestrapped and reg.-tested on mainline (could a patch like
this be OK for 4.0?) on Linux/x86. Please commit if OK.
2005-09-28 Erik Edelmann <erik.edelmann@iki.fi>
PR fortran/20541
* gfortran.h (gfc_component): Added field "allocatable".
* check.c (gfc_check_allocated): Check attributes
returned by gfc_variable_attr(), instead of array->symtree->n.sym->attr.
* primary.c (gfc_variable_attr): Check for allocatable components
of derived types.
* decl.c (build_struct): Likewise.
* trans-types.c (gfc_get_derived_type): Likewise.
* resolve.c (derived_allocatable): New function.
(resolve_transfer): Use it.
* symbol.c (gfc_set_component_attr): Set the "allocatable" attribute.
2005-09-28 Erik Edelmann <erik.edelmann@iki.fi>
PR fortran/20541
* gfortran.dg/der_allocatable_1.f90: New.
* gfortran.dg/der_io_4.f90: New.
Erik
Attachment:
20541.diff
Description: Text document
Attachment:
der_allocatable_1.f90
Description: Text document
Attachment:
der_io_4.f90
Description: Text document
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |