[Patch, fortran] PR29431 - Not Implemented: complex character array constructors

Paul Thomas paulthomas2@wanadoo.fr
Wed Nov 8 23:38:00 GMT 2006


:ADDPATCH fortran:

This patch permits character functions to be elements of array 
constructors, as long as the character length is constant.  It is a very 
straightforward addition to trans-array.c.  The testcase is a slight 
mutilation of the reporter's.

Regtested on Suse10.1/amd64.

OK for trunk, 4.2 and 4.1?

Paul

2006-11-08  Paul Thomas <pault@gcc.gnu.org>

    PR fortran/29431
    * trans-array.c    (get_array_ctor_strlen): If we fall through to
    default, use a constant character length if it is available.

2006-11-08  Paul Thomas  <pault@gcc.gnu.org>

    PR fortran/29431
    * gfortran.dg/array_constructor_13.f90: New test.



-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: pr29431.diff
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20061108/47d5019b/attachment.ksh>


More information about the Gcc-patches mailing list