[patch, fortran] Fix PR 33539

Thomas Koenig tkoenig@netcologne.de
Thu Oct 4 20:10:00 GMT 2007


Hello world,

this fixes PR 33539 by not issuing a warning for strings
that have zero length.  Regression-tested on i686-pc-linux-gnu.

No special test case needed; I just removed dg-warning lines from
the places where they occurred in the testsuite.

OK?  (Also OK with the approach of not warning)?

	Thomas

2007-10-04  Thomas Koenig  <tkoenig@gcc.gnu.org>

        PR fortran/33539
        * resolve.c: Only warn if the string length is
        less than zero.

2007-10-04  Thomas Koenig  <tkoenig@gcc.gnu.org>

        PR fortran/33539
        * zero_length_2.f90:  Omit warning for zero-length string.
        * repeat_2.f90:  Likewise.
        * repeat_4.f90:  Likewise.
        * char_length_2.f90:  Likewise.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr33539-3.diff
Type: text/x-patch
Size: 3089 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20071004/55d3277e/attachment.bin>


More information about the Fortran mailing list