re PR fortran/35682 (assignment to run-time zero-sized complex section stores a value)
authorFrancois-Xavier Coudert <fxcoudert@gcc.gnu.org>
Wed, 14 May 2008 21:20:10 +0000 (21:20 +0000)
committerFrançois-Xavier Coudert <fxcoudert@gcc.gnu.org>
Wed, 14 May 2008 21:20:10 +0000 (21:20 +0000)
commit4c7382bba925267cd4c71d29c0255c2964b4cb67
tree1c3a56e6dca368522831f733c93f7761f0f54c3f
parentf10827b13be2d7f3a031c93ba6fcc35f81f762fd
re PR fortran/35682 (assignment to run-time zero-sized complex section stores a value)

PR fortran/35682

* trans-array.c (gfc_conv_ss_startstride): Any negative size is
the same as zero size.
(gfc_conv_loop_setup): Fix size calculation.

* gfortran.dg/bound_4.f90: New test.
* gfortran.dg/bounds_check_14.f90: New test.

From-SVN: r135306
gcc/fortran/ChangeLog
gcc/fortran/trans-array.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/bound_4.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/bounds_check_14.f90 [new file with mode: 0644]