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/13773] New: Incorrect diagnosis of restricted function


The following code: 
  Integer Function mycount( inarray ) 
 
    Implicit None 
 
    Integer, Dimension(5) :: inarray 
    Integer, Dimension(Sum(inarray)) :: tt 
 
    mycount = 1 
 
  End Function mycount 
 
gives the error 
parabrisas% g95 tt.f90  
 In file tt.f90:6 
 
    Integer, Dimension(Sum(inarray)) :: tt 
                      1 
Error: Intrinsic function 'sum' at (1) is not a restricted function 
 
By my reading of s7.1.6.2 (and Intel's and Lahey's) this is, however, a 
restricted expression and should be allowed.

-- 
           Summary: Incorrect diagnosis of restricted function
           Product: gcc
           Version: tree-ssa
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: tow21 at cam dot ac dot uk
                CC: gcc-bugs at gcc dot gnu dot org


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


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