From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31025 invoked by alias); 20 Sep 2010 16:30:06 -0000 Received: (qmail 30244 invoked by uid 48); 20 Sep 2010 16:29:47 -0000 Date: Mon, 20 Sep 2010 16:30:00 -0000 Message-ID: <20100920162947.30243.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/45438] [4.6 Regression] [OOP] ICE with -fcheck=pointer In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "janus at gcc dot gnu dot org" 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: 2010-09/txt/msg02257.txt.bz2 ------- Comment #3 from janus at gcc dot gnu dot org 2010-09-20 16:29 ------- Here is a reduced test case: module base_mat_mod type :: base_sparse_mat contains procedure :: get_fmt end type contains function get_fmt(a) result(res) implicit none class(base_sparse_mat), intent(in) :: a character(len=5) :: res res = 'NULL' end function subroutine errlog(name) character(len=*) :: name end subroutine subroutine test (a) implicit none class(base_sparse_mat), intent(in) :: a call errlog(a%get_fmt()) end subroutine end module -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45438