Hi Paul, hi Dominique thanks for the fast review and error check, respectively. Committed as r234528. Regards, Andre On Tue, 29 Mar 2016 15:34:13 +0200 Paul Richard Thomas wrote: > Hi Andre, > > Yes, it is better to play safe :-) OK for trunk. > > Thanks > > Paul > > On 29 March 2016 at 14:55, Andre Vehreschild wrote: > > 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 > > > -- Andre Vehreschild * Email: vehre ad gmx dot de