[accaf, fortran, 1/4] Allocatable components support in derived typed coarrays
Andre Vehreschild
vehre@gmx.de
Tue Aug 30 15:50:00 GMT 2016
Hi all,
this patch adds propagation of an in_coarray flag to the gfortran
routines that handle the creation of derived type objects and its
containing arrays. The flag is responsible for causing the add of
caf_tokens for all allocatable objects.
Furthermore adds this patch a gfc_caf_attr (gfc_expr *) routine that
works similar to the gfc_expr_attr (), but treats the codimension flag
as infectious, i.e., when there is an object with a codimension in the
expression, than this is reflected in the resulting attr. The routine
gfc_is_coarray () only returned true, when the object addressed by the
expression (after traversing all refs) was a coarray and therefore could
not be used. gfc_caf_attr() furthermore reports whether the expression
passes any allocatable component while traversing the chain of refs.
This patch is the base for part 2 of this patch set and the new
routines are only used in part 2.
Regards,
Andre
--
Andre Vehreschild * Email: vehre ad gmx dot de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: accaf_1.patch
Type: text/x-patch
Size: 9570 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20160830/ea501f25/attachment.bin>
More information about the Fortran
mailing list