This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/36192] ICE with wrong index types and bad parens
- From: "dominiq at lps dot ens dot fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Oct 2008 12:09:48 -0000
- Subject: [Bug fortran/36192] ICE with wrong index types and bad parens
- References: <bug-36192-11764@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #6 from dominiq at lps dot ens dot fr 2008-10-01 12:09 -------
Reduced code:
program three_body
real, parameter :: n = 2, d = 2
real, dimension(n,d) :: x
x(1,:) = (/ 1.0, 0.0 /)
end program three_body
gives
pr36192_ice.f90:3.18:
real, dimension(n,d) :: x
1
Error: Expression at (1) must be of INTEGER type
pr36192_ice.f90:3.20:
real, dimension(n,d) :: x
1
Error: Expression at (1) must be of INTEGER type
pr36192_ice.f90:3.27:
real, dimension(n,d) :: x
1
Error: The module or main program array 'x' at (1) must have constant shape
f951: internal compiler error: Bus error
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
The ICE disappears if the line
x(1,:) = (/ 1.0, 0.0 /)
is commented.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36192