From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5276 invoked by alias); 17 Jul 2007 10:38:31 -0000 Received: (qmail 5192 invoked by uid 48); 17 Jul 2007 10:38:21 -0000 Date: Tue, 17 Jul 2007 10:38:00 -0000 Message-ID: <20070717103821.5191.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/31259] ICE on elemental character function In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "dfranke 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-07/txt/msg01844.txt.bz2 ------- Comment #2 from dfranke at gcc dot gnu dot org 2007-07-17 10:38 ------- Please note that the problem is not limited to character functions: $> cat pr31529.f90 print *, bar((/2, 3/)) contains elemental function bar(i) integer, intent(in) :: i integer :: a(i:i) a = i bar = a(i) end function bar end Here, dummy I is used as specification expression in array bounds and accepted by gfortran (20070716). Although there is no ICE and the result is as one would expect, the code is still invalid. -- dfranke at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dfranke at gcc dot gnu dot | |org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31259