https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104908
anlauf at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |anlauf at gcc dot gnu.org
Keywords| |ice-on-valid-code
--- Comment #5 from anlauf at gcc dot gnu.org ---
The following code generates an ICE:
subroutine sub (v)
implicit none
type vec
integer :: x(2,1)
end type vec
! type(vec), intent(in) :: v(:) ! works with type
class(vec), intent(in) :: v(:) ! ICE with class
integer :: k
k = v(1)%x(2,1)
end