https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88685
--- Comment #6 from Paul Thomas <pault at gcc dot gnu.org> --- Author: pault Date: Sat Feb 2 09:10:58 2019 New Revision: 268472 URL: https://gcc.gnu.org/viewcvs?rev=268472&root=gcc&view=rev Log: 2019-02-02 Paul Thomas <pa...@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 <pa...@gcc.gnu.org> PR fortran/88685 * gfortran.dg/pointer_array_component_3.f90 : New test. Added: trunk/gcc/testsuite/gfortran.dg/pointer_array_component_3.f90 Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/expr.c trunk/gcc/testsuite/ChangeLog