This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/31244] New: data initialization with more than 2**32 elements
- From: "tkoenig at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Mar 2007 15:00:33 -0000
- Subject: [Bug fortran/31244] New: data initialization with more than 2**32 elements
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
$ 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