[Bug fortran/13773] New: Incorrect diagnosis of restricted function
tow21 at cam dot ac dot uk
gcc-bugzilla@gcc.gnu.org
Tue Jan 20 16:47:00 GMT 2004
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
More information about the Gcc-bugs
mailing list