re PR fortran/84538 (Array of derived type elements incorrectly accessed in function)
authorPaul Thomas <pault@gcc.gnu.org>
Thu, 1 Mar 2018 08:56:31 +0000 (08:56 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Thu, 1 Mar 2018 08:56:31 +0000 (08:56 +0000)
commitb120c8b207d33f00b34fad9256740d6483839d2b
treedb01cf2ce08c07b6688a46595701b58ab7d140b0
parent2514222436ea242510fd6457c0d42e60af4d3535
re PR fortran/84538 (Array of derived type elements incorrectly accessed in function)

2018-03-01  Paul Thomas  <pault@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  <pault@gcc.gnu.org>

PR fortran/84538
* gfortran.dg/class_array_23.f03: New test.

From-SVN: r258097
gcc/fortran/ChangeLog
gcc/fortran/class.c
gcc/fortran/trans-array.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/class_array_23.f03 [new file with mode: 0644]