This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/18495] Intrinisc function SPREAD is broken
- From: "tobi at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Dec 2004 21:05:14 -0000
- Subject: [Bug libfortran/18495] Intrinisc function SPREAD is broken
- References: <20041115053618.18495.paulthomas2@wanadoo.fr>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From tobi at gcc dot gnu dot org 2004-12-02 21:05 -------
I think I know now how the return array is allocated. This is not the error.
An additional error seems to be that a scalar source is not special cased, as
for PACK, see PR17283:
[tobi@marktplatz tests]$ cat spread.f90
real :: a(5)
a = spread (1., 1, 5)
end
[tobi@marktplatz tests]$ gfortran spread.f90
[tobi@marktplatz tests]$ ./a.out
Segmentation fault
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18495