This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch, fortran] PR80333 Namelist dtio write of array of class does not traverse the array
- From: Jerry DeLisle <jvdelisle at charter dot net>
- To: sgk at troutmask dot apl dot washington dot edu
- Cc: "fortran at gcc dot gnu dot org" <fortran at gcc dot gnu dot org>, GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 19 May 2017 08:52:31 -0700
- Subject: Re: [patch, fortran] PR80333 Namelist dtio write of array of class does not traverse the array
- Authentication-results: sourceware.org; auth=none
- References: <8dc9b364-13c5-f568-9000-345f736c3ad5@charter.net> <20170519020619.GA78663@troutmask.apl.washington.edu>
On 05/18/2017 07:06 PM, Steve Kargl wrote:
On Thu, May 18, 2017 at 05:16:45PM -0700, Jerry DeLisle wrote:
2017-05-18 Paul Thomas <pault@gcc.gnu.org>
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-18 Paul Thomas <pault@gcc.gnu.org>
Jerry DeLisle <jvdelisle@gcc.gnu.org>
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.
Looks ok to me. A few style comments below.
Agreed on style changes. Fixed those, recompiled, retested, and ...
Committed r248293
A gcc/testsuite/gfortran.dg/dtio_30.f03
M gcc/testsuite/ChangeLog
M gcc/fortran/ChangeLog
M gcc/fortran/trans-io.c
M libgfortran/ChangeLog
M libgfortran/io/list_read.c
Thanks for review.
Jerry