PR fortran/PR53876 PR fortran/PR54990 PR fortran/PR54992
authorPaul Thomas <pault@gcc.gnu.org>
Sun, 6 Jan 2013 21:32:48 +0000 (21:32 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Sun, 6 Jan 2013 21:32:48 +0000 (21:32 +0000)
commitf04986a90b4ece27f2d144881adaf9f3d7cd6731
treedfd2767db2b73b5d9034f73b9a1615edf6c836fd
parent1ab05c31a0854497acc8503d4aca9b36d38c3f28
PR fortran/PR53876 PR fortran/PR54990 PR fortran/PR54992

2013-01-06  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/PR53876
PR fortran/PR54990
PR fortran/PR54992
* trans-array.c (build_array_ref): Check the TYPE_CANONICAL
to see if it is GFC_CLASS_TYPE_P.
* trans-expr.c (gfc_get_vptr_from_expr): The same.
(gfc_conv_class_to_class): If the types are not the same,
cast parmese->expr to the type of ctree.
* trans-types.c (gfc_get_derived_type): GFC_CLASS_TYPE_P of
CLASS components must be set.

2013-01-06  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/PR53876
PR fortran/PR54990
PR fortran/PR54992
* gfortran.dg/class_array_15.f03: New test.

From-SVN: r194953
gcc/fortran/ChangeLog
gcc/fortran/trans-array.c
gcc/fortran/trans-expr.c
gcc/fortran/trans-types.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/class_array_15.f03 [new file with mode: 0644]