[Patch, fortran] PR24862 IO for arrays of derived type.

Paul Thomas paulthomas2@wanadoo.fr
Thu Nov 17 21:01:00 GMT 2005


Janne,

I have not had time to try your patch, yet.  However, it seems to me 
that it will not handle the likes of

write (*, *) dt(:)%x

where the derived type has more components than in your example.  You 
are trying to implicitly alias the component array; this does not work 
in gfortran, when and where it should.

Viewed on the bright side, if your patch is accepted, it puts the 
pressure on to reform array representation.

In fact, I would say that your derived type is too trivial to be 
acceptable because the size of the derived type matches the spacing 
between the components.  Add a character(1) to make it more difficult.

Best regards

Paul



More information about the Gcc-patches mailing list