re PR fortran/77505 (Negative character length not treated as LEN=0)
authorElizebeth Punnoose <elizebeth.punnoose@hpe.com>
Thu, 1 Dec 2016 23:11:35 +0000 (23:11 +0000)
committerSteven G. Kargl <kargl@gcc.gnu.org>
Thu, 1 Dec 2016 23:11:35 +0000 (23:11 +0000)
commit90ee6453b254cd77819bc30d9d13a3c9828fd1c5
treee978b10c7fd3f6f62136d3ca91e264d1c7042540
parentb55e6680dec27409fe0e6dc800500564f1a06b53
re PR fortran/77505 (Negative character length not treated as LEN=0)

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.

From-SVN: r243143
gcc/fortran/ChangeLog
gcc/fortran/trans-array.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/char_length_20.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/char_length_21.f90 [new file with mode: 0644]