$ cat data.f90
program main
  integer(kind=1), dimension(4294967296_8) :: i
  data i /4294967296_8 * 1_1/
  print *,i(1)
end program main
$ gfortran data.f90
data.f90:3.24:

  data i /4294967296_8 * 1_1/
                       1
Error: Integer value too large in expression at (1)

This is probably due to the use of gfc_match_int() in
top_val_list.


-- 
           Summary: data initialization with more than 2**32 elements
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: rejects-valid
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: tkoenig at gcc dot gnu dot org


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

Reply via email to