re PR fortran/35698 (lbound and ubound wrong for allocated run-time zero size array)
authorPaul Thomas <pault@gcc.gnu.org>
Sat, 29 Mar 2008 08:11:02 +0000 (08:11 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Sat, 29 Mar 2008 08:11:02 +0000 (08:11 +0000)
commit067feae32fe285618807617acf418260c6e9cf12
tree4a75eff4d82cbafdd38d6c403013a27b5d32c727
parentdbc518f09c4ac4499dcbf5802e20cd4adb0d9a41
re PR fortran/35698 (lbound and ubound wrong for allocated run-time zero size array)

2008-03-29  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/35698
* trans-array.c (gfc_array_init_size): Set 'size' zero if
negative in one dimension.

PR fortran/35702
* trans-expr.c (gfc_trans_string_copy): Only assign a char
directly if the lhs and rhs types are the same.

2008-03-29  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/35698
* gfortran.dg/allocate_zerosize_3.f: New test.

PR fortran/35702
* gfortran.dg/character_assign_1.f90: New test.

From-SVN: r133710
gcc/fortran/ChangeLog
gcc/fortran/trans-array.c
gcc/fortran/trans-expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/allocate_zerosize_3.f [new file with mode: 0644]
gcc/testsuite/gfortran.dg/character_assign_1.f90 [new file with mode: 0644]