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 <pa...@gcc.gnu.org> PR fortran/84538 * class.c (class_array_ref_detected): Remove the condition that there be no reference after the array reference. (find_intrinsic_vtab): Remove excess whitespace. * trans-array.c (gfc_conv_scalarized_array_ref): Rename 'tmp' as 'base and call build_class_array_ref earlier. 2018-03-01 Paul Thomas <pa...@gcc.gnu.org> PR fortran/84538 * gfortran.dg/class_array_23.f03: New test. On 27 February 2018 at 09:34, Paul Richard Thomas <paul.richard.tho...@gmail.com> wrote: > 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 > > Paul > > 2018-02-27 Paul Thomas <pa...@gcc.gnu.org> > > PR fortran/84538 > * class.c (class_array_ref_detected): Remove the condition that > there be no reference after the array reference. > (find_intrinsic_vtab): Remove excess whitespace. > * trans-array.c (gfc_conv_scalarized_array_ref): Rename 'tmp' > as 'base and call build_class_array_ref earlier. > > 2018-02-27 Paul Thomas <pa...@gcc.gnu.org> > > PR fortran/84538 > * gfortran.dg/pr84523.f90: New test. -- "If you can't explain it simply, you don't understand it well enough" - Albert Einstein