[Bug fortran/58586] ICE with derived type with allocatable component passed by value
janus at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Jan 5 13:53:00 GMT 2014
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58586
janus at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[OOP] ICE with derived type |ICE with derived type with
|with a polymorphic |allocatable component
|allocatable component |passed by value
|passed by value |
--- Comment #2 from janus at gcc dot gnu.org ---
Reduced test case with the same ICE:
module mod
type :: a
end type
type :: b
type(a), allocatable :: a
end type
contains
subroutine add (c)
type(b), value :: c
end subroutine
type(b) function b_init()
end function
end module
use mod
call add(b_init())
end
The component does not have to be polymorphic to trigger the error.
More information about the Gcc-bugs
mailing list