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

2006-10-19 Thread fxcoudert at gcc dot gnu dot org
--- Comment #10 from fxcoudert at gcc dot gnu dot org 2006-10-19 21:49 --- Subject: Bug 27895 Author: fxcoudert Date: Thu Oct 19 21:48:50 2006 New Revision: 117890 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=117890 Log: PR libfortran/27895 * intrinsics/cshif

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

2006-07-26 Thread fxcoudert at gcc dot gnu dot org
--- Comment #9 from fxcoudert at gcc dot gnu dot org 2006-07-26 08:34 --- A patch for the library functions CSHIFT, PACK and SPREAD has been submitted: http://gcc.gnu.org/ml/gcc-patches/2006-07/msg01103.html The only one that is still not working is thus RESHAPE; it's proving difficult

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

2006-06-24 Thread fxcoudert at gcc dot gnu dot org
--- Comment #8 from fxcoudert at gcc dot gnu dot org 2006-06-24 22:16 --- (In reply to comment #3) > I believe the segfault is appropriately fixed by the following patch I still think this patch is the right thing, and I've been looking through the other transformational function to se

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

2006-06-19 Thread fxcoudert at gcc dot gnu dot org
--- Comment #7 from fxcoudert at gcc dot gnu dot org 2006-06-20 06:04 --- Subject: Bug 27895 Author: fxcoudert Date: Tue Jun 20 06:04:14 2006 New Revision: 114803 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=114803 Log: 2006-06-20 Francois-Xavier Coudert <[EMAIL PROTECTED]>

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

2006-06-19 Thread fxcoudert 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 follow

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

2006-06-05 Thread fxcoudert at gcc dot gnu dot org
--- Comment #5 from fxcoudert at gcc dot gnu dot org 2006-06-05 22:41 --- Subject: Bug 27895 Author: fxcoudert Date: Mon Jun 5 22:41:29 2006 New Revision: 114414 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=114414 Log: PR libfortran/27895 * resolve.c (comput

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

2006-06-05 Thread fxcoudert at gcc dot gnu dot org
-- fxcoudert at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|unassigned at gcc dot gnu |fxcoudert at gcc dot gnu dot |dot org

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

2006-06-05 Thread fxcoudert at gcc dot gnu dot org
--- Comment #4 from fxcoudert at gcc dot gnu dot org 2006-06-05 14:23 --- And I'm sure the warnings are appropriately fixed by: Index: resolve.c === --- resolve.c (revision 114340) +++ resolve.c (working copy) @@ -2130

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

2006-06-05 Thread fxcoudert at gcc dot gnu dot org
--- Comment #3 from fxcoudert at gcc dot gnu dot org 2006-06-05 13:46 --- I believe the segfault is appropriately fixed by the following patch: Index: libgfortran/intrinsics/spread_generic.c === --- libgfortran/intrinsics/

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

2006-06-05 Thread fxcoudert at gcc dot gnu dot org
--- Comment #2 from fxcoudert at gcc dot gnu dot org 2006-06-05 09:24 --- The problem is in the library. spread_internal rightly understands that the destination array will have zero-size in one dimension, so the call to allocation memory for ret->data at line 104: ret->data = i