From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23794 invoked by alias); 8 Jul 2007 17:49:45 -0000 Received: (qmail 23765 invoked by uid 48); 8 Jul 2007 17:49:36 -0000 Date: Sun, 08 Jul 2007 17:49:00 -0000 Message-ID: <20070708174936.23764.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/31639] [4.1/4.2/4.3] ICE in gfc_conv_constant, at fortran/trans-const.c:348 with len In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "burnus 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/msg00945.txt.bz2 ------- Comment #4 from burnus at gcc dot gnu dot org 2007-07-08 17:49 ------- > function f() > integer :: i = irand() > f = i > end function We should give a message such as ifort: The initialization shall not appear for this object name. [F] This array or function or substring is invalid in constant expressions. [IRAND] The place to change is check_init_expr; maybe gfc_intrinsic_func_interface. Giving an error should fix both problems. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31639