[Patch, Fortran, pr70397, v1] [5/6 Regression] ice while allocating ultimate polymorphic

Andre Vehreschild vehre@gmx.de
Tue Mar 29 12:55:00 GMT 2016


Hi all,

here is the trunk version of the patch for the regression reported in
pr70397. Applying the gcc-5 patch to trunk lead to a regression, which
the modified patch resolves now. The technique to solve the ice is
the same as for gcc-5:

> The routine gfc_copy_class_to_class() assumed that both the source
> and destination object's type is unlimited polymorphic, but in this
> case it is true for the destination only, which made gfortran look
> for a non-existent _len component in the source object and therefore
> ICE. This is fixed by the patch by adding a function to return either
> the _len component, when it exists, or a constant zero node to init
> the destination object's _len component with.

Bootstrapped and regtested on x86_64-linux-gnu/F23. Ok for trunk?

Regards,
	Andre

PS: Yes, Paul, I know you accepted the patch for gcc-5 for trunk
also, but I feel safer when the changes made get additional approval.
-- 
Andre Vehreschild * Email: vehre ad gmx dot de 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: pr70397_1.clog
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20160329/98648da9/attachment.ksh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr70397_gcc6_1.patch
Type: text/x-patch
Size: 4681 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20160329/98648da9/attachment.bin>


More information about the Fortran mailing list