[PATCH, fortran] Simplify constant substrings

Andreas Jaeger aj@suse.de
Fri Jul 22 05:49:00 GMT 2005


David Edelsohn <dje@watson.ibm.com> writes:

> 	While investigating other string issues, I noticed that substring
> parameters are not set correctly.  This is because substrings are not
> simplified.
>
>         program foo
>         character*2 a
>         character*4 b
>         character*6 c
>         parameter (a="12")
>         parameter (b = a(1:2))
>         write (c,'("#",A,"#")') b
> 	if (c .ne. '#12  #') call abort
>         end

Shouldn't this test program go into the gfortran testsuite?

Andreas
-- 
 Andreas Jaeger, aj@suse.de, http://www.suse.de/~aj
  SUSE Linux Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
   GPG fingerprint = 93A3 365E CE47 B889 DF7F  FED1 389A 563C C272 A126
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20050722/99deee71/attachment.sig>


More information about the Fortran mailing list