[Fortran, patch, pr78053, v1] [OOP] SELECT TYPE on CLASS(*) component for deferred length char arrays ICEs for -O > 0

Andre Vehreschild vehre@gmx.de
Mon Oct 24 19:25:00 GMT 2016


Hi all,

attached patch fixes an ICE in gfortran when an unlimited polymorphic entity
was used to store a char array of deferred/assumed length. The patch typedefs
the necessary type now copying the behavior from
trans-array.c::gfc_trans_create_temp_array(). 

Furthermore does the patch now consequently set the _vptr->_size to the
character kind of the char array and the _len component to the length of the
string independent of whether the char array was declared deferred or with a
len given.

Bootstraps and regtests ok on x86_64-linux/F23. Ok for trunk?

Regards,
	Andre
-- 
Andre Vehreschild * Email: vehre ad gmx dot de 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: pr78053_v1.clog
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20161024/3837f5ba/attachment.ksh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr78053_v1.patch
Type: text/x-patch
Size: 5563 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20161024/3837f5ba/attachment.bin>


More information about the Fortran mailing list