Since PR 25104 and PR 29962, gfortran allows PRODUCT in initialization
expressions (2009-06-07); however, using -std=f95 PRODUCT is still accepted.

Expected: Print an error when using -std=f95.

INTEGER, PARAMETER :: d = 4 ! Number of elements to permute
INTEGER :: I
INTEGER, PARAMETER :: maxnum = PRODUCT((/(i,i=1,d)/))
print *, maxnum
end


-- 
           Summary: -std=f95: Reject PRODUCT in initialization expressions.
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Keywords: diagnostic
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: burnus at gcc dot gnu dot org


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

Reply via email to