https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80333
--- Comment #5 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> --- Author: jvdelisle Date: Tue May 23 21:39:41 2017 New Revision: 248388 URL: https://gcc.gnu.org/viewcvs?rev=248388&root=gcc&view=rev Log: 2017-05-23 Paul Thomas <[email protected]> Backport from trunk PR fortran/80333 * trans-io.c (nml_get_addr_expr): If we are dealing with class type data set tmp tree to get that address. (transfer_namelist_element): Set the array spec to point to the the class data. * gfortran.dg/dtio_30.f03: New test. * list_read.c (nml_read_obj): Compute pointer into class/type arrays from the nl->dim information. Update it for each iteration of the loop for the given object. Added: branches/gcc-7-branch/gcc/testsuite/gfortran.dg/dtio_30.f03 Modified: branches/gcc-7-branch/gcc/fortran/ChangeLog branches/gcc-7-branch/gcc/fortran/trans-io.c branches/gcc-7-branch/gcc/testsuite/ChangeLog branches/gcc-7-branch/libgfortran/ChangeLog branches/gcc-7-branch/libgfortran/io/list_read.c
