re PR fortran/88685 (pointer class array argument indexing)
authorPaul Thomas <pault@gcc.gnu.org>
Sat, 2 Feb 2019 09:10:58 +0000 (09:10 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Sat, 2 Feb 2019 09:10:58 +0000 (09:10 +0000)
commit6bb45a6b52046f51193c34bbd026a13bf48b4b49
tree3f7e9bb398c6c762970d432172a8abfebe6e0d64
parent01826160a3b2ab2f0c68c13b47d3467cf9618fbb
re PR fortran/88685 (pointer class array argument indexing)

2019-02-02  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/88685
* expr.c (is_subref_array): Move the check for class pointer
dummy arrays to after the reference check. If we haven't seen
an array reference other than an element and a component is not
class or derived, return false.

2019-02-02  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/88685
* gfortran.dg/pointer_array_component_3.f90 : New test.

From-SVN: r268472
gcc/fortran/ChangeLog
gcc/fortran/expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/pointer_array_component_3.f90 [new file with mode: 0644]