From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24268 invoked by alias); 20 Jan 2004 16:47:32 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 24239 invoked by uid 48); 20 Jan 2004 16:47:31 -0000 Date: Tue, 20 Jan 2004 16:47:00 -0000 From: "tow21 at cam dot ac dot uk" To: gcc-bugs@gcc.gnu.org Message-ID: <20040120164730.13773.tow21@cam.ac.uk> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug fortran/13773] New: Incorrect diagnosis of restricted function X-Bugzilla-Reason: CC X-SW-Source: 2004-01/txt/msg02415.txt.bz2 List-Id: 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