From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25740 invoked by alias); 20 May 2008 20:40:55 -0000 Received: (qmail 25427 invoked by alias); 20 May 2008 20:40:12 -0000 Date: Tue, 20 May 2008 20:40:00 -0000 Message-ID: <20080520204012.25426.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/36167] ICE in gfc_conv_descriptor_dimension, at fortran/trans-array.c:242 In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "fmuldoo at me dot lsu dot edu" 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-05/txt/msg01586.txt.bz2 ------- Comment #4 from fmuldoo at me dot lsu dot edu 2008-05-20 20:40 ------- Subject: Re: ICE in gfc_conv_descriptor_dimension, at fortran/trans-array.c:242 Hi Paul, Thanks for the work-around. I now have got my code built using gfortran. Frank On Sat, 2008-05-17 at 16:20 +0000, pault at gcc dot gnu dot org wrote: > > ------- Comment #2 from pault at gcc dot gnu dot org 2008-05-17 16:20 ------- > (In reply to comment #1) > > Created an attachment (id=15589) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15589&action=view) > --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15589&action=view) [edit] > > Very small code example > > > Frank, > > The problem arises because of the declaration of 'u' in 'overlap_1. gfortran > declares automatic arrays to be array types in TREE-SSA. For some reason, the > interface code in the function code is barfing when it tries to set the > dimensions of the result. The interface is assuming that there is a descriptor > available for 'u' and this generates the ICE. I will investigate because it is > legal code. In the mean time, a workaround is to declare 'u' as assumed shape, > thusly: > > real, intent(in), dimension(:,:,:) :: u > > This forces the array to be represented as descriptor type and does not lose > anything from your code. It also is a bit easier on the eye:) > > Thanks for the report. > > Paul > > -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36167