From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3193 invoked by alias); 14 Feb 2011 10:32:36 -0000 Received: (qmail 3184 invoked by uid 22791); 14 Feb 2011 10:32:35 -0000 X-SWARE-Spam-Status: No, hits=-2.7 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 14 Feb 2011 10:32:30 +0000 From: "janus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/47730] [OOP] ICE on invalid source in connection with SELECT TYPE 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-invalid-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: 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 Date: Mon, 14 Feb 2011 11:19:00 -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 X-SW-Source: 2011-02/txt/msg01646.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47730 --- Comment #3 from janus at gcc dot gnu.org 2011-02-14 10:32:18 UTC --- Another related test case was recently reported by Andrew Benson at http://gcc.gnu.org/ml/fortran/2011-02/msg00111.html: module mod1 type treeNode end type treeNode contains subroutine proc1(thisNode) class (treeNode), target, intent(in) :: thisNode select type (thisNode) type is (treeNode) workNode => thisNode end select end subroutine proc1 end module mod1 workNode => thisNode 1 Error: Non-POINTER in pointer association context (pointer assignment) at (1) f951: internal compiler error: in gfc_enforce_clean_symbol_state, at fortran/symbol.c:3426