This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/27895] problem with SPREAD and 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: 19 Jun 2006 12:03:34 -0000
- Subject: [Bug libfortran/27895] problem with SPREAD and zero-sized arrays
- References: <bug-27895-10259@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #6 from fxcoudert at gcc dot gnu dot org 2006-06-19 12:03 -------
CSHIFT has the same problem:
$ cat zero_cshift.f90
real :: tempn(1)
tempn = 2.0
print *, cshift(tempn(2:),shift=1)
end
$ gfortran zero_cshift.f90 && ./a.out
Floating point exception
I believe the following functions may not be safe: EOSHIFT, PACK, RESHAPE,
TRANSPOSE, UNPACK (and of course, SPREAD and CSHIFT).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27895