This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/30320] New: program crash for SUM applied to zero-size array
- From: "vivekrao4 at yahoo dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Dec 2006 20:01:49 -0000
- Subject: [Bug fortran/30320] New: program crash for SUM applied to zero-size array
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
U:\vrao\fortran>gfortran -v
Using built-in specs.
Target: i386-pc-mingw32
Configured with: ../trunk/configure --prefix=/mingw
--enable-languages=c,fortran --with-gmp=/home/coudert/local --disable-nls
--with-ld=/mingw/bin/ld --with-as=/mingw/bin/as --disable-werror
--enable-bootstrap --enable-threads --host=i386-pc-mingw32 --disable-shared
--enable-libgomp
Thread model: win32
gcc version 4.3.0 20061021 (experimental)
U:\vrao\fortran>type xzero_size_array.f90
program xzero
implicit none
integer :: ii(1,0)
ii = 1
print*,"sum(ii,dim=1) =",sum(ii,dim=1)
end program xzero
U:\vrao\fortran>gfortran xzero_size_array.f90
U:\vrao\fortran>a.exe
program crashes (Windows pop-up: a.exe has encountered a problem and needs to
close)
--
Summary: program crash for SUM applied to zero-size array
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: vivekrao4 at yahoo dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30320