gfortran 4.4 allows 15 instead of 7 dimensions, however, it has some problems
with that:

gfortran -std=f95 -Wall -pedantic should print a message for:

integer,parameter                        :: N=10
complex,dimension(-N:N,-N:N,0:1,0:1,-N:N,-N:N,0:1,0:1)   :: P
end

But it does not. This seems to be an off-by-one error as for 9 dimensions an
error is printed:
  Error: Fortran 2008: Array specification at (1) with more than 7 dimensions

  * * *

More seriously, adding a PRINT causes an IDE:

a.f90:1: internal compiler error: in gfc_get_dtype, at
fortran/trans-types.c:1254

integer,parameter                        :: N=10
complex,dimension(-N:N,-N:N,0:1,0:1,-N:N,-N:N,0:1,0:1)   :: P
print *, p
end


-- 
           Summary: Problems with dimensions > 7
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code, 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=36825

Reply via email to