This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/33298] Wrong code for SPREAD on zero-sized arrays
- From: "tkoenig at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Sep 2007 19:25:47 -0000
- Subject: [Bug libfortran/33298] Wrong code for SPREAD on zero-sized arrays
- References: <bug-33298-109@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #10 from tkoenig at gcc dot gnu dot org 2007-09-06 19:25 -------
Subject: Bug 33298
Author: tkoenig
Date: Thu Sep 6 19:25:30 2007
New Revision: 128206
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=128206
Log:
2007-09-06 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/33298
* intrinsics/spread_generic.c(spread_internal): Enable
bounds checking by comparing extents if the bounds_check
option has been set. If any extent is <=0, return early.
2007-09-06 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/33298
* spread_zerosize_1.f90: New test case.
* spread_bounds_1.f90: New test case.
Added:
trunk/gcc/testsuite/gfortran.dg/spread_bounds_1.f90
trunk/gcc/testsuite/gfortran.dg/spread_zerosize_1.f90
Modified:
trunk/gcc/testsuite/ChangeLog
trunk/libgfortran/ChangeLog
trunk/libgfortran/intrinsics/spread_generic.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33298