From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22791 invoked by alias); 6 Oct 2009 08:04:31 -0000 Received: (qmail 21911 invoked by uid 48); 6 Oct 2009 08:04:20 -0000 Date: Tue, 06 Oct 2009 08:04:00 -0000 Subject: [Bug fortran/41600] New: [OOP] SELECT TYPE with associate-name => exp: Arrays not supported X-Bugzilla-Reason: CC Message-ID: 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: 2009-10/txt/msg00471.txt.bz2 Assumes that patch http://gcc.gnu.org/ml/fortran/2009-10/msg00049.html is already committed. As written in http://gcc.gnu.org/ml/fortran/2009-10/msg00047.html, array valued expressions do not work; presumably some other attributes need also to be copied/honored. (cf. also PR 41599.) implicit none type t0 integer :: j = 42 end type t0 type t integer :: i class(t0), allocatable :: foo(:) end type t type(t) :: m allocate(t0 :: m%foo(3)) m%i = 5 select type(bar => m%foo) type is(t0) print *, bar end select end -- Summary: [OOP] SELECT TYPE with associate-name => exp: Arrays not supported Product: gcc Version: 4.5.0 Status: UNCONFIRMED Keywords: rejects-valid Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: burnus at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41600