This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/24384] New: SPREAD does not handle scalar sources.


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]