From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1690 invoked by alias); 2 Mar 2010 23:31:52 -0000 Received: (qmail 1542 invoked by uid 48); 2 Mar 2010 23:31:38 -0000 Date: Tue, 02 Mar 2010 23:31:00 -0000 Message-ID: <20100302233138.1541.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/42051] [OOP] ICE on array-valued function with CLASS formal argument In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "janus 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: 2010-03/txt/msg00238.txt.bz2 ------- Comment #6 from janus at gcc dot gnu dot org 2010-03-02 23:31 ------- Here is another very similar example: implicit none type :: lorenz end type lorenz type(lorenz) :: attractor print *,output(attractor) contains function output(this) result(coordinates) class(lorenz), intent(in) :: this real, dimension(:), allocatable :: coordinates end function output end main.f90: In function ‘MAIN__’: main.f90:13:0: internal compiler error: in gfc_conv_variable, at fortran/trans-expr.c:548 This has been extracted from the code found in http://dx.doi.org/10.1145/1644001.1644004. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42051