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: "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: 4 Sep 2007 10:51:29 -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 #5 from fxcoudert at gcc dot gnu dot org 2007-09-04 10:51 -------
Reduced testcase:
real :: x(0,3), y(0)
x = spread(y,2,3)
end
Backtrace:
#0 0x0000000000431600 in memcpy ()
#1 0x000000000040400f in spread_internal (ret=<value optimized out>,
source=<value optimized out>, along=<value optimized out>,
pncopies=<value optimized out>, size=4)
at ../../../../trunk2/libgfortran/intrinsics/spread_generic.c:148
#2 0x0000000000400342 in MAIN__ () at a.f90:2
--
fxcoudert at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Component|fortran |libfortran
Ever Confirmed|0 |1
GCC build triplet|x86_64-unknown-linux-gnu |
GCC host triplet|x86_64-unknown-linux-gnu |
GCC target triplet|x86_64-unknown-linux-gnu |
Keywords| |wrong-code
Known to fail| |4.3.0
Last reconfirmed|0000-00-00 00:00:00 |2007-09-04 10:51:29
date| |
Summary|Wrong code for SPREAD on |Wrong code for SPREAD on
|zero sized dummy arguments |zero-sized arrays
Target Milestone|--- |4.3.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33298