This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/46060] gfortran crash when referencing procedure pointer
- From: "janus at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 18 Oct 2010 09:48:52 +0000
- Subject: [Bug fortran/46060] gfortran crash when referencing procedure pointer
- Auto-submitted: auto-generated
- References: <bug-46060-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46060
janus at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ice-on-invalid-code
Status|UNCONFIRMED |NEW
Last reconfirmed| |2010.10.18 09:48:42
Ever Confirmed|0 |1
--- Comment #3 from janus at gcc dot gnu.org 2010-10-18 09:48:42 UTC ---
Confirmed. Here is a slightly reduced test case:
implicit none
abstract interface
function name_func (ivar) result (res)
integer, intent(in) :: ivar
character(len=8) :: res
end function name_func
end interface
type var_type
procedure(name_func), nopass, pointer :: name
end type var_type
type(var_type) :: vars
character(len=8) name
name = vars%name ! invalid !!!
end
This, like the original code, is invalid and gives an ICE. Changing the invalid
line to something like
name = vars%name(3)
makes the ICE go away.