This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/77505] Negative character length not treated as LEN=0


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77505

--- Comment #10 from kargl at gcc dot gnu.org ---
Author: kargl
Date: Thu Dec  1 23:11:35 2016
New Revision: 243143

URL: https://gcc.gnu.org/viewcvs?rev=243143&root=gcc&view=rev
Log:
2016-12-01  Elizebeth Punnoose  <elizebeth.punnoose@hpe.com>

        PR fortran/77505
        * trans-array.c (trans_array_constructor): Treat negative character
        length as LEN = 0.


2016-12-01  Elizebeth Punnoose  <elizebeth.punnoose@hpe.com>

        PR fortran/77505
        * gfortran.dg/char_length_20.f90: New test.
        * gfortran.dg/char_length_21.f90: Ditto.

Added:
    trunk/gcc/testsuite/gfortran.dg/char_length_20.f90
    trunk/gcc/testsuite/gfortran.dg/char_length_21.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/trans-array.c
    trunk/gcc/testsuite/ChangeLog

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]