From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29212 invoked by alias); 14 Oct 2009 08:42:58 -0000 Received: (qmail 29147 invoked by uid 48); 14 Oct 2009 08:42:47 -0000 Date: Wed, 14 Oct 2009 08:42:00 -0000 Message-ID: <20091014084247.29146.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/41587] [OOP] ICE with ALLOCATABLE CLASS components In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "dominiq at lps dot ens dot fr" 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: 2009-10/txt/msg01194.txt.bz2 ------- Comment #1 from dominiq at lps dot ens dot fr 2009-10-14 08:42 ------- I don't get an ICE with the coed in comment#0. However I get one with the following (valid?) changes: type t0 integer :: j = 42 end type t0 type t integer :: i class(t0), allocatable :: foo(:) end type t type(t) :: k allocate(t0 :: k%foo(3)) print *, k%foo%j end pr41587_db.f90: In function 'MAIN__': pr41587_db.f90:9:0: internal compiler error: in gfc_conv_descriptor_data_get, at fortran/trans-array.c:147 Note that with the patch in http://gcc.gnu.org/ml/fortran/2009-10/msg00136.html , I get the following error for the code in comment#0: pr41587.f90:6.34: class(t0), allocatable :: foo(3) 1 Error: Allocatable component of structure at (1) must have a deferred shape -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41587