[Bug fortran/57284] [OOP] ICE with find_array_spec for polymorphic arrays
pault at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Jun 9 18:31:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57284
--- Comment #11 from Paul Thomas <pault at gcc dot gnu.org> ---
Author: pault
Date: Sun Jun 9 18:31:11 2019
New Revision: 272094
URL: https://gcc.gnu.org/viewcvs?rev=272094&root=gcc&view=rev
Log:
2019-06-09 Paul Thomas <pault@gcc.gnu.org>
Backport from trunk
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.
* trans-array.c (gfc_trans_create_temp_array): Compute elemsize
in all cases and use to set span field.
(gfc_is_reallocatable_lhs): Pick up class allocatable exprs
that do not have a _data component ref before the array ref.
2019-06-09 Paul Thomas <pault@gcc.gnu.org>
Backport from trunk
PR fortran/57284
* gfortran.dg/class_70.f03: New test
* gfortran.dg/assign_10.f90: Bump up counts of "atmp".
* gfortran.dg/transpose_optimization_2.f90: Ditto
Modified:
branches/gcc-8-branch/gcc/testsuite/ChangeLog
branches/gcc-8-branch/gcc/testsuite/gfortran.dg/transpose_optimization_2.f90
More information about the Gcc-bugs
mailing list