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/29393] New: Vector subscript rejected


$ cat a2.f90 
  integer, parameter ::   A(-3:7,2)=0 
  integer, parameter, dimension(3) :: V = (/ 2, 4, 6 /) 
  integer, parameter, dimension(3) :: B = A(V,1) 
END 
$ gfortran a2.f90        
 In file a2.f90:3

  integer, parameter, dimension(3) :: B = A(V,1) 
                                      1
Error: Incompatible ranks 1 and 2 in assignment at (1)


-- 
           Summary: Vector subscript rejected
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Keywords: rejects-valid
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: fxcoudert at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29393


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