This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/41800] [OOP] ICE in fold_convert_loc, at fold-const.c:2789
- From: "janus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Oct 2009 11:27:38 -0000
- Subject: [Bug fortran/41800] [OOP] ICE in fold_convert_loc, at fold-const.c:2789
- References: <bug-41800-6318@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from janus at gcc dot gnu dot org 2009-10-23 11:27 -------
Further reduced test case:
module abstract_gradient
implicit none
private
type, public, abstract :: gradient_class
contains
procedure, nopass :: inner_product
end type
contains
function inner_product ()
class(gradient_class), pointer :: inner_product
inner_product => NULL()
end function
end module
use abstract_gradient
class(gradient_class), pointer :: g_initial, ip_save
ip_save => g_initial%inner_product() ! ICE
end
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41800