From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27442 invoked by alias); 19 Mar 2007 00:58:07 -0000 Received: (qmail 27420 invoked by uid 48); 19 Mar 2007 00:57:57 -0000 Date: Mon, 19 Mar 2007 00:58:00 -0000 Subject: [Bug fortran/31259] New: ICE on elemental character function X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "fxcoudert 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: 2007-03/txt/msg01772.txt.bz2 gfortran ICEs on the following invalid code: print *, len(bar([2,3,4,5])) contains elemental function bar(i) integer, intent(in) :: i character(len=i) :: bar bar = "" end function bar end We should simply reject i being used in an initialization expr. -- Summary: ICE on elemental character function Product: gcc Version: 4.3.0 Status: UNCONFIRMED Keywords: ice-on-invalid-code Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: fxcoudert at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31259