From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22192 invoked by alias); 19 Jan 2014 12:34:26 -0000 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 Received: (qmail 22140 invoked by uid 48); 19 Jan 2014 12:34:23 -0000 From: "pault at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/59414] [4.8/4.9 Regression] [OOP] ICE in in gfc_conv_expr_descriptor on ALLOCATE inside SELECT TYPE Date: Sun, 19 Jan 2014 12:34:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 4.8.2 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: pault at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-01/txt/msg02040.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59414 --- Comment #12 from Paul Thomas --- (In reply to janus from comment #3) ....snip.... > > module ObjectLists > implicit none > > type :: t > end type > > type Object_array_pointer > class(t), pointer :: p(:) > end type > > contains > > subroutine AddArray (P, Pt) > class(t) :: P(:) > class(Object_array_pointer) :: Pt > > select type (Pt) > class is (Object_array_pointer) ICE disappears with type is (Object_array_pointer) > allocate(Pt%P(1:SIZE(P)), source=P) > end select > end subroutine > > end module Paul