From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14051 invoked by alias); 24 Feb 2009 17:09:39 -0000 Received: (qmail 14010 invoked by uid 48); 24 Feb 2009 17:09:26 -0000 Date: Tue, 24 Feb 2009 17:09:00 -0000 Message-ID: <20090224170926.14009.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/39292] [4.3/4.4 Regression] ICE in gfc_conv_array_initializer, at fortran/trans-array.c:3884 In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "kargl at gcc dot gnu dot org" 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: 2009-02/txt/msg02112.txt.bz2 ------- Comment #2 from kargl at gcc dot gnu dot org 2009-02-24 17:09 ------- (In reply to comment #1) > Fails the same with 4.4, 4.2 reports an error: > > gfortran-4.2 -S t.f90 > t.f90:4.35: > > &a = (/ ( (float(n))**(1.0), n=1,2) /) > 1 > Error: Exponent at (1) must be INTEGER for an initialization expression > > so I'm not sure if the testcase is valid or not. > It is invalid in Fortran 95, and the error message is correct. It is valid in Fortran 2003. The patch in http://gcc.gnu.org/ml/fortran/2009-01/msg00231.html may fix your problem. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39292