[commited, Fortran, Backport to 4.9, pr60255] [OOP] Deferred character length variable at (1) cannot yet be associated with unlimited polymorphic entities

Andre Vehreschild vehre@gmx.de
Mon Mar 23 12:03:00 GMT 2015


Hi all,

commited as r221591 to gcc_4.9-branch. Okayed by Paul via IRC on 2015-03-22.
Thanks, Paul.

gcc/fortran/ChangeLog

2015-03-23  Andre Vehreschild  <vehre@gmx.de>
	    Janus Weil  <janus@gcc.gnu.org>

	Backported from mainline
	PR fortran/60255
	Initial patch version: Janus Weil
	* class.c (gfc_get_len_component): New.
	(gfc_build_class_symbol): Add _len component to unlimited
	polymorphic entities.
	(find_intrinsic_vtab): Removed emitting of error message.
	* gfortran.h: Added prototype for gfc_get_len_component.
	* simplify.c (gfc_simplify_len): Use _len component where
	available.
	* trans-expr.c (gfc_class_len_get): New.
	(gfc_conv_intrinsic_to_class): Add handling for deferred
	character arrays.
	(gfc_conv_structure): Treat _len component correctly.
	(gfc_conv_expr): Prevent bind_c handling when not required.
	(gfc_trans_pointer_assignment): Propagate _len component.
	* trans-stmt.c (class_has_len_component): New.
	(trans_associate_var): _len component treatement for associate
	context.
	(gfc_trans_allocate): Same as for trans_associate_var()
	* trans.h: Add prototype for gfc_class_len_get.

gcc/testsuite/ChangeLog

2015-03-20  Andre Vehreschild  <vehre@gmx.de>

	Backport from mainline
	PR fortran/60255
	* gfortran.dg/unlimited_polymorphic_2.f03: Removed error.
	Converted from dos to unix line endings.
	* gfortran.dg/unlimited_polymorphic_20.f03: New test.

Regards,
	Andre
-- 
Andre Vehreschild * Email: vehre ad gmx dot de 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr60255.diff
Type: text/x-patch
Size: 25946 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20150323/230224bb/attachment.bin>


More information about the Gcc-patches mailing list