This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: fortran/patch to PR15364: support printing of array fields inderived types
- From: Victor Leikehman <lei at haifasphere dot co dot il>
- To: Steven Bosscher <s dot bosscher at student dot tudelft dot nl>
- Cc: fortran at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Tue, 14 Sep 2004 10:25:04 +0300
- Subject: Re: fortran/patch to PR15364: support printing of array fields inderived types
- Organization: IBM Research Lab in Haifa, Israel
- References: <41459DDA.3030808@haifasphere.co.il> <200409140237.27613.s.bosscher@student.tudelft.nl>
Steven Bosscher wrote:
> If I understand your patch correctly (you don't comment the
> code much ;-), we now treat CHARACTER arrays:
Printing of CHARACTER array fields is supported since my patch
from 2004-04-24, (http://gcc.gnu.org/ml/gcc-patches/2004-04/msg01654.html),
which introduced printing of scalar fields in derived-type variables.
That support remained essentially unchanged, except that I moved the
old code from place to place to adapt it to the introduced support of
array fields.
> I'm curious why this works, CHARACTER(len...) is not quite the same
> as an array.
I think this has changed when Paul reimplemented support of
character arrays in April 2004.
> There really should be more comments in the code...
You are definitely right. I will do my best to improve the situation.
As of dull variable names in test cases, I invite everybody to contribute
their suggestions.
Victor
--
Victor Leikehman
IBM Research Labs in Haifa, Israel