[Bug fortran/46201] [F03] ICE on procedure pointer component call

janus at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Dec 13 16:57:00 GMT 2010


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46201

--- Comment #3 from janus at gcc dot gnu.org 2010-12-13 16:57:20 UTC ---
Here is an even more compact version of the test case (getting rid of the
INTERFACE statement):


type t
  procedure(character), nopass, pointer :: ppc
end type
type(t),dimension(1) :: v
print *,v(1)%ppc()
end


Apparently the procedure pointer component must be CHARACTER-valued in order to
trigger the ICE. Also the object which the PPC is invoked on must be an array.



More information about the Gcc-bugs mailing list