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: [PATCH] Fix FMT= with CHARACTER arrays (PR fortran/39865, take 3)


Jakub Jelinek wrote:
On Wed, May 13, 2009 at 09:19:42AM +0200, Tobias Schlüter wrote:
My take on this: we have to support Hollerith formatting for backwards compatibility. But we don't have to support Hollerith formatting combined with Fortran 90 constructs, as we don't want new code written with this ugly extension. The gaps in the arrays Jakub was talking about can only arise with Fortran 90 constructs (viz complex :: b(:,:) above). Therefore,
write(*, fmt=b(3,2)) 1
should give a hard error in my opinion "Error: legacy hollerith formatting is not allowed with assumed shape array" (modulo terminology, I always forget what is assumed-size, assumed-shape etc).

Makes sense.



I agree, thanks for the clarifications.


Jerry


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