This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/35682] assignment to run-time zero-sized complex section stores a value
- From: "fxcoudert at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 May 2008 21:21:01 -0000
- Subject: [Bug fortran/35682] assignment to run-time zero-sized complex section stores a value
- References: <bug-35682-15620@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from fxcoudert at gcc dot gnu dot org 2008-05-14 21:21 -------
Subject: Bug 35682
Author: fxcoudert
Date: Wed May 14 21:20:10 2008
New Revision: 135306
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=135306
Log:
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.
Added:
trunk/gcc/testsuite/gfortran.dg/bound_4.f90
trunk/gcc/testsuite/gfortran.dg/bounds_check_14.f90
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/trans-array.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35682