This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/13773] New: Incorrect diagnosis of restricted function
- From: "tow21 at cam dot ac dot uk" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Jan 2004 16:47:31 -0000
- Subject: [Bug fortran/13773] New: Incorrect diagnosis of restricted function
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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