From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8249 invoked by alias); 16 Apr 2007 18:37:37 -0000 Received: (qmail 8217 invoked by uid 48); 16 Apr 2007 18:37:27 -0000 Date: Mon, 16 Apr 2007 18:37:00 -0000 Subject: [Bug fortran/31591] New: internal compiler error on array initialization statement using 'ubound' X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "Catherine dot M dot Moroney at jpl dot nasa dot gov" 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: 2007-04/txt/msg01158.txt.bz2 See the bit of code below dealing with the initialization of array contents with the "ubound" results called on another array. If the "module" statements plus the write(*,*) statements are both commented out, then this bit of code compiles. However, if either (a) this code is made into a module, or (b) it remains as a program but the 'write(*,*)' statement is put back in, then the compilation fails with an "internal compiler error: in gfc_conv_array_initializer, at fortran/trans-array.c:3460" !MODULE TEST_CERES PROGRAM Test_ceres implicit none real, dimension(10, 10, 10, 3, 4) :: TCg_coef integer, parameter, dimension(5) :: & TCg_bband_coef_ranks = ubound(TCg_coef) !write(*,*) 'array_ranks = ',TCg_bband_coef_ranks end program Test_ceres !end module Test_ceres -- Summary: internal compiler error on array initialization statement using 'ubound' Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: Catherine dot M dot Moroney at jpl dot nasa dot gov http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31591