[Fortran, patch, caf] Add unimplemented message for polymorphic objects with allocatable/pointer components

Andre Vehreschild vehre@gmx.de
Thu Oct 13 17:16:00 GMT 2016


Hi all,

attached patch adds an unimplemented message, when a polymorphic coarray object
with allocatable/pointer components is declared for coarray mode library. This
is just an ad-hoc solution until handling those constructs is implemented.
There are already some prs that address ICEs caused by this issue: 77961, 77785.

Bootstrapped and regtests ok on x86_64-linux/F23. May have some fuzz when the
patch for polymorphic assign:

https://gcc.gnu.org/ml/fortran/2016-10/msg00091.html

is not present. The polymorphic assign patch is not necessary for this patch.

If no one objects, I will commit tomorrow morning.

Regards,
	Andre
-- 
Andre Vehreschild * Email: vehre ad gmx dot de 
-------------- next part --------------
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename=caf_unimp.clog

gcc/testsuite/ChangeLog:

2016-10-13  Andre Vehreschild  <vehre@gcc.gnu.org>

	* gfortran.dg/coarray_38.f90: Expect error message.

gcc/fortran/ChangeLog:

2016-10-13  Andre Vehreschild  <vehre@gcc.gnu.org>

	* resolve.c (resolve_symbol): Add unimplemented message for
	polymorphic types with allocatable/pointer components and coarray=lib.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: caf_unimp.patch
Type: text/x-patch
Size: 1397 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20161013/7865afa2/attachment.bin>


More information about the Fortran mailing list