From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1247 invoked by alias); 14 Feb 2011 10:27:39 -0000 Received: (qmail 1238 invoked by uid 22791); 14 Feb 2011 10:27:38 -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:27:34 +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 10:29: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/msg01643.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47730 --- Comment #2 from janus at gcc dot gnu.org 2011-02-14 10:27:23 UTC --- (In reply to comment #0) > It seems related to bug #46849 Yes, in particular to comment #2 in that PR: module m implicit none type :: dt end type contains subroutine test(fun) class(dt) :: fun call extern(not_existing) ! Error: No implicit type select type (fun) type is (dt) ! TYPE IS is required for the ICE end select end subroutine test end module m which gives: call extern(not_existing) ! Error: No implicit type 1 Error: Symbol 'not_existing' at (1) has no IMPLICIT type f951: internal compiler error: in gfc_enforce_clean_symbol_state, at fortran/symbol.c:3426 Same pattern: Some error, and afterwards an ICE in 'gfc_enforce_clean_symbol_state'.