[Patch, fortran] PR32875 - Not Implemented: complex character array constructor

Paul Thomas paulthomas2@wanadoo.fr
Fri Aug 17 07:45:00 GMT 2007


:ADDPATCH fortran:

This patch is self-explanatory and acts as a backstop in translating 
character array constructors.  Notice that the length, in this case, 
should, strictly speaking be one.  However, the precise value of the 
character length of a zero length array seems to be an academic nicety 
to me.  Note also that LEN (this constructor) gives the right value 
because it is simplified correctly.

Regtests amd64/Cygwin_NT - OK for trunk?

Paul

2007-08-17  Paul Thomas  <pault@gcc.gnu.org>

    PR fortran/32875
    * trans-array.c    (get_array_ctor_strlen): Set the character
    length of a zero length array to zero.

2007-08-17  Paul Thomas  <pault@gcc.gnu.org>

    PR fortran/32875
    * gfortran.dg/array_constructor_18.f90: New test.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr32875.diff
Type: text/x-patch
Size: 1385 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20070817/40dd167d/attachment.bin>


More information about the Fortran mailing list