From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22159 invoked by alias); 3 Jan 2010 17:43:58 -0000 Received: (qmail 22144 invoked by uid 48); 3 Jan 2010 17:43:48 -0000 Date: Sun, 03 Jan 2010 17:43:00 -0000 Subject: [Bug fortran/42597] New: ICE with procedure pointer initialized to null() X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "mrestelli at gmail dot com" 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-01/txt/msg00296.txt.bz2 The attached code (which seems fine to me) produces an internal compiler error. gfortran -c pp.f90 -o pp.o f951: internal compiler error: in gfc_build_null_descriptor, at fortran/trans-array.c:372 gfortran --version GNU Fortran (GCC) 4.5.0 20091229 (experimental) module mod_a implicit none public :: p_fun private abstract interface pure function intf(x) result(y) real, intent(in) :: x(:,:) real :: y(size(x,1),size(x,1),size(x,2)) end function intf end interface !procedure(intf), pointer :: p_fun ! this works procedure(intf), pointer :: p_fun => null() end module mod_a -- Summary: ICE with procedure pointer initialized to null() Product: gcc Version: 4.5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: mrestelli at gmail dot com GCC build triplet: GNU Fortran (GCC) 4.5.0 20091229 (experimental) GCC host triplet: Linux 2.6.27-gentoo-r8 x86_64 AMD Turion(tm) 64 Mobile Technolog http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42597