Re: [Patch, fortran] PR84538 - [8 Regression] Array of derived type elements incorrectly accessed in function

2018-03-01 Thread Paul Richard Thomas
Committed as revision 258097 with a corrections to a pre-existing, garbled comment (Thanks Dominique!) and to the ChangeLog. Paul 2018-03-01 Paul Thomas PR fortran/84538 * class.c (class_array_ref_detected): Remove the condition that there be no reference after the array

[Patch, fortran] PR84538 - [8 Regression] Array of derived type elements incorrectly accessed in function

2018-02-27 Thread Paul Richard Thomas
Hi All, The attached fixes this PR by dint of the change in class.c. The changes to trans-array.c are largely cosmetic but the move of the call to 'build_class_array_ref' ensures that all class array references go by this route. Boostrapped and regtested on FC27/x86_64 - OK to commit? Regards