This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/24384] New: SPREAD does not handle scalar sources.
- From: "pault at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Oct 2005 16:31:14 -0000
- Subject: [Bug fortran/24384] New: SPREAD does not handle scalar sources.
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
EXAMPLE #1
[rt@localhost mytests]# cat spread_r.f90; /gcc-4.1/bin/gfortran spread_r.f90;
./a.out
character*1 :: i, j(10)
i = "w"
j = spread (i, 1, 10)
end
Fortran runtime error: rank mismatch in spread()
EXAMPLE #2
character*1 :: j(10)
j = spread ("w", 1, 10)
end
spread_r.f90: In function ?MAIN__?:
spread_r.f90:2: internal compiler error: Segmentation fault
These and other cases with scalar sources all run with g95 and ifc. This
capability is specified in the standard.
The patch cometh.....
--
Summary: SPREAD does not handle scalar sources.
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: fortran
AssignedTo: pault at gcc dot gnu dot org
ReportedBy: pault at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24384