[PATCH, fortran] character length (PR fortran/21730)
Steve Kargl
sgk@troutmask.apl.washington.edu
Wed Jul 13 18:53:00 GMT 2005
On Wed, Jul 13, 2005 at 01:38:19PM -0400, David Edelsohn wrote:
> Gfortran currently assigns an initializer to a symbol if the two
> are conforming, but character initializers are not truncated or padded to
> match a fixed character length target. This patch calls
> gfc_set_constant_character_len() to adjust the initializer so that it
> conforms to the target character length.
>
> Bootstrapped. Okay if no regressions?
>
> Thanks, David
>
David,
Do you have a testcase that fails without this patch?
I'm assuming you are fixing something like the following
character(len=10) :: a = '12345'
This becomes a = '12345 '.
--
Steve
More information about the Fortran
mailing list