From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26474 invoked by alias); 26 Nov 2008 13:51:48 -0000 Received: (qmail 14982 invoked by uid 48); 26 Nov 2008 13:50:25 -0000 Date: Wed, 26 Nov 2008 13:51:00 -0000 Message-ID: <20081126135025.14981.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/38205] Tranformational function SUM rejected in initialization expressions 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: 2008-11/txt/msg02263.txt.bz2 ------- Comment #4 from burnus at gcc dot gnu dot org 2008-11-26 13:50 ------- I think that patch is not enough (though useful!). I think one needs to add a gfc_simplify_sum to simplify.c and replace then the NULL by the function name in intrinsic.c for "sum". Possibly as well for the other transformational intrinsics which are allowed in initialization expressions. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38205