From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17685 invoked by alias); 30 Apr 2013 12:13:54 -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 17639 invoked by uid 48); 30 Apr 2013 12:13:50 -0000 From: "janus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/57116] [OOP] ICE for pointer assignment inside SELECT TYPE Date: Tue, 30 Apr 2013 12:13: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-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: janus at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: CC Summary Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 X-SW-Source: 2013-04/txt/msg02427.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57116 janus at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |janus at gcc dot gnu.org Summary|CLASS(*) - ICE for pointer |[OOP] ICE for pointer |assignment inside SELECT |assignment inside SELECT |TYPE on UP entity |TYPE --- Comment #2 from janus at gcc dot gnu.org 2013-04-30 12:13:49 UTC --- Reduced test case for the ICE, which shows that unlimited polymorphism is not required to trigger the bug: implicit none type :: foo real :: v end type contains subroutine extract(this, v) class(foo), target :: this(:) real, pointer :: v(:) select type (this) class is (foo) v => this(1:2)%v end select end subroutine end