This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libfortran/27895] problem with SPREAD and zero-sized arrays



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]