re PR fortran/57284 ([OOP] ICE with find_array_spec for polymorphic arrays)
authorPaul Thomas <pault@gcc.gnu.org>
Mon, 22 Apr 2019 06:50:33 +0000 (06:50 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Mon, 22 Apr 2019 06:50:33 +0000 (06:50 +0000)
commit16a51cf5491b642639b60ea12c0fff12a5403934
tree3df2343a26f4954033b65ca19113ed070fefedfd
parent76a86e861665f8fc9595969112eb5a08590b5a29
re PR fortran/57284 ([OOP] ICE with find_array_spec for polymorphic arrays)

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

PR fortran/57284
* resolve.c (find_array_spec): If this is a class expression
and the symbol and component array specs are the same, this is
not an error.
*trans-intrinsic.c (gfc_conv_intrinsic_size): If a class symbol
argument, has no namespace, it has come from the interface
mapping and the _data component must be accessed directly.

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

PR fortran/57284
* gfortran.dg/class_70.f03

From-SVN: r270489
gcc/fortran/ChangeLog
gcc/fortran/resolve.c
gcc/fortran/trans-intrinsic.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/class_70.f03 [new file with mode: 0644]