public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/24384]  New: SPREAD does not handle scalar sources.
@ 2005-10-15 16:31 pault at gcc dot gnu dot org
  2005-10-15 16:35 ` [Bug fortran/24384] " pinskia at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: pault at gcc dot gnu dot org @ 2005-10-15 16:31 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 894 bytes --]

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2005-11-17 18:31 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-15 16:31 [Bug fortran/24384] New: SPREAD does not handle scalar sources pault at gcc dot gnu dot org
2005-10-15 16:35 ` [Bug fortran/24384] " pinskia at gcc dot gnu dot org
2005-10-23  6:59 ` cvs-commit at gcc dot gnu dot org
2005-10-23 15:08 ` pault at gcc dot gnu dot org
2005-10-23 23:03 ` pinskia at gcc dot gnu dot org
2005-11-17 18:31 ` fxcoudert at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).