From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30239 invoked by alias); 8 Dec 2009 21:46:31 -0000 Received: (qmail 30202 invoked by uid 48); 8 Dec 2009 21:46:10 -0000 Date: Tue, 08 Dec 2009 21:46:00 -0000 Subject: [Bug fortran/42335] New: [OOP] ICE on CLASS IS (bad_identifier) X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "anlauf at gmx dot de" 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-12/txt/msg00890.txt.bz2 Hi, the following (invalid) code gives an ICE: module gfcbug95 implicit none type, abstract :: vector_class end type vector_class type, extends(vector_class) :: trivial_vector_type real :: elements(100) end type trivial_vector_type contains subroutine bar (this,v) class(trivial_vector_type), intent(inout) :: this class(vector_class), intent(in) :: v select type (v) ! class is (trivial_vector_type) ! OK class is (bad_id) ! ICE this%elements(:) = v%elements(:) end select end subroutine bar end module gfcbug95 % gfc45 gfcbug95.f90 gfcbug95.f90:16.20: class is (bad_id) ! ICE 1 Error: 'bad_id' at (1) is not an accessible derived type f951: internal compiler error: Segmentation fault Cheers, -ha -- Summary: [OOP] ICE on CLASS IS (bad_identifier) Product: gcc Version: 4.5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: anlauf at gmx dot de http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42335