From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9781 invoked by alias); 1 Oct 2008 12:11:10 -0000 Received: (qmail 9494 invoked by uid 48); 1 Oct 2008 12:09:48 -0000 Date: Wed, 01 Oct 2008 12:11:00 -0000 Message-ID: <20081001120948.9493.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/36192] ICE with wrong index types and bad parens In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "dominiq at lps dot ens dot fr" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2008-10/txt/msg00011.txt.bz2 ------- 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 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