public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/13773] New: Incorrect diagnosis of restricted function
@ 2004-01-20 16:47 tow21 at cam dot ac dot uk
  2004-01-20 16:50 ` [Bug fortran/13773] [gfortran] " pinskia at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: tow21 at cam dot ac dot uk @ 2004-01-20 16:47 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-05-23 16:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-20 16:47 [Bug fortran/13773] New: Incorrect diagnosis of restricted function tow21 at cam dot ac dot uk
2004-01-20 16:50 ` [Bug fortran/13773] [gfortran] " pinskia at gcc dot gnu dot org
2004-01-21 17:16 ` dhazeghi at yahoo dot com
2004-05-24  1:25 ` pbrook at gcc dot gnu dot org
2004-05-24  1:25 ` cvs-commit at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).