[Bug fortran/40646] ICE assigning array return value from type-bound procedure

janus at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Sat Jul 4 14:11:00 GMT 2009



------- Comment #4 from janus at gcc dot gnu dot org  2009-07-04 14:11 -------
The same ICE as in comment #2 already appears using ordinary procedure
pointers:

module bugTestMod
  implicit none
contains
  function returnMat( a, b ) result( mat )
    integer:: a, b
    double precision, dimension(a,b):: mat 
    mat = 1d0
  end function returnMat
end module bugTestMod

program bugTest
  use bugTestMod
  implicit none
  procedure(returnMat), pointer :: pp
  pp => returnMat
end program bugTest


-- 

janus at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |janus at gcc dot gnu dot org


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



More information about the Gcc-bugs mailing list