[Bug fortran/80333] Namelist dtio write of array of class does not traverse the array
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80333 Jerry DeLisle changed: What|Removed |Added Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #6 from Jerry DeLisle --- Fixed on 7 and closing.
[Bug fortran/80333] Namelist dtio write of array of class does not traverse the array
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80333 --- Comment #5 from Jerry DeLisle --- 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 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
[Bug fortran/80333] Namelist dtio write of array of class does not traverse the array
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80333 --- Comment #4 from Jerry DeLisle --- This is now fixed on trunk. The patch fixes both READ and WRITE traversal of arrays of class objects using User Defined Derived Type I/O in NAMELISTs. This could be a slick feature for "serializing" CLASS objects. Will back port to 7 in a few days if no new problems pop up.
[Bug fortran/80333] Namelist dtio write of array of class does not traverse the array
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80333 --- Comment #3 from Jerry DeLisle --- Author: jvdelisle Date: Fri May 19 15:48:35 2017 New Revision: 248293 URL: https://gcc.gnu.org/viewcvs?rev=248293&root=gcc&view=rev Log: 2017-05-19 Paul Thomas 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. 2017-05-19 Paul Thomas Jerry DeLisle PR fortran/80333 * 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. 2017-05-19 Jerry DeLisle PR libgfortran/80333 * gfortran.dg/dtio_30.f03: New test. Added: trunk/gcc/testsuite/gfortran.dg/dtio_30.f03 Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/trans-io.c trunk/gcc/testsuite/ChangeLog trunk/libgfortran/ChangeLog trunk/libgfortran/io/list_read.c
[Bug fortran/80333] Namelist dtio write of array of class does not traverse the array
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80333 Jerry DeLisle changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |jvdelisle at gcc dot gnu.org --- Comment #2 from Jerry DeLisle --- This is front end issue, and I will explore
[Bug fortran/80333] Namelist dtio write of array of class does not traverse the array
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80333 Dominique d'Humieres changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed||2017-04-06 Ever confirmed|0 |1 --- Comment #1 from Dominique d'Humieres --- Confirmed.