This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/34476] Parameters: Bogus out of bounds error in array constructor
- From: "pault 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 Dec 2007 05:41:40 -0000
- Subject: [Bug fortran/34476] Parameters: Bogus out of bounds error in array constructor
- References: <bug-34476-13404@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from pault at gcc dot gnu dot org 2007-12-17 05:41 -------
4.2 gives a second error:
integer(1), parameter :: ARR1(len(HEX1)) = [( MSKa1(i), i=1,len(HEX1) )]
1
Error: index in dimension 1 is out of bounds at (1)
pr34476.f90:5.44:
integer(1), parameter :: MSKa1(len(HEX1)) = [(1,i=1,len(HEX1))]
1
Error: Parameter array 'mska1' at (1) cannot be automatic or assumed shape
Paul
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34476