This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: fortran/patch to PR15364: support printing of array fields inderived types


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]